Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 100.4 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.364/1.364, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 55.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07558/0.0767, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003521/0.08025, allocations: 2.657 MB / 330 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.08147, allocations: 0.916 MB / 331 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.0816, allocations: 8 kB / 331 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.08182, allocations: 59.44 kB / 331 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.08207, allocations: 103.2 kB / 331.1 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.08228, allocations: 95.81 kB / 331.2 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000297/0.08259, allocations: 354.7 kB / 331.6 MB, free: 172 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.08277, allocations: 109.7 kB / 331.7 MB, free: 68 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.08295, allocations: 139.5 kB / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.08313, allocations: 155.3 kB / 332 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.08318, allocations: 28 kB / 332 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.253e-05/0.08324, allocations: 28 kB / 332 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.08331, allocations: 63.77 kB / 332.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.08344, allocations: 159.2 kB / 332.2 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.08373, allocations: 351 kB / 332.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08374, allocations: 4 kB / 332.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08375, allocations: 0 / 332.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.08376, allocations: 4 kB / 332.6 MB, free: 15.15 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008844/0.08465, allocations: 0.6041 MB / 333.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.08469, allocations: 15.89 kB / 333.2 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.076e-05/0.08476, allocations: 66.72 kB / 333.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.542e-05/0.08482, allocations: 32.56 kB / 333.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.08507, allocations: 259.5 kB / 333.5 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.08511, allocations: 20.94 kB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.08515, allocations: 24.38 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.08559, allocations: 253 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.08561, allocations: 0 / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.08564, allocations: 12 kB / 333.8 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.08565, allocations: 8 kB / 333.9 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.08607, allocations: 214.1 kB / 334.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.08746, allocations: 1.001 MB / 335.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003833/0.08785, allocations: 206.5 kB / 335.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.0881, allocations: 108.8 kB / 335.4 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.08813, allocations: 8 kB / 335.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.08816, allocations: 34.56 kB / 335.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.322e-06/0.08817, allocations: 0 / 335.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.004736/0.09291, allocations: 1.542 MB / 337 MB, free: 10.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.09296, allocations: 59.41 kB / 337 MB, free: 10.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.09317, allocations: 228.9 kB / 337.2 MB, free: 10.17 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.0932, allocations: 29.7 kB / 337.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.603e-05/0.0933, allocations: 188.1 kB / 337.5 MB, free: 9.949 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.939e-05/0.09338, allocations: 110.3 kB / 337.6 MB, free: 9.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-05/0.09349, allocations: 66.06 kB / 337.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.09362, allocations: 338.8 kB / 338 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.09385, allocations: 112.7 kB / 338.1 MB, free: 9.316 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.09411, allocations: 157.3 kB / 338.2 MB, free: 9.148 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/0.09459, allocations: 287.8 kB / 338.5 MB, free: 8.852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.0946, allocations: 0 / 338.5 MB, free: 8.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001455/0.09606, allocations: 0.5409 MB / 339 MB, free: 8.297 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.09608, allocations: 4 kB / 339 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.09609, allocations: 4 kB / 339 MB, free: 8.289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.09726, allocations: 245.4 kB / 339.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.09751, allocations: 63.91 kB / 339.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03957/0.1371, allocations: 4.133 MB / 343.5 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.1374, allocations: 15.98 kB / 343.5 MB, free: 3.555 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.1374, allocations: 8 kB / 343.5 MB, free: 3.547 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.1376, allocations: 153.7 kB / 343.7 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.582e-05/0.1376, allocations: 27.62 kB / 343.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.624e-05/0.1377, allocations: 42.95 kB / 343.7 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1377, allocations: 4 kB / 343.7 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1377, allocations: 8 kB / 343.7 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1378, allocations: 7.984 kB / 343.7 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.1397, allocations: 0.9726 MB / 344.7 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1397, allocations: 4 kB / 344.7 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.1399, allocations: 39.97 kB / 344.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.141, allocations: 245.7 kB / 345 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.1411, allocations: 11.98 kB / 345 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004233/0.1453, allocations: 4.137 MB / 349.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1453, allocations: 0 / 349.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.147, allocations: 0.7288 MB / 349.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.1471, allocations: 92.83 kB / 350 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.1471, allocations: 11.94 kB / 350 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.1473, allocations: 19.98 kB / 350 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.1474, allocations: 32.02 kB / 350 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.1475, allocations: 8 kB / 350 MB, free: 12.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.1476, allocations: 168.5 kB / 350.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1476, allocations: 0 / 350.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000533/0.1481, allocations: 100 kB / 350.3 MB, free: 12.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/0.1501, allocations: 1.278 MB / 351.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009131/0.151, allocations: 0.5672 MB / 352.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.151, allocations: 3.938 kB / 352.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005371/0.1516, allocations: 433.4 kB / 352.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.1519, allocations: 20.44 kB / 352.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/0.1572, allocations: 3.36 MB / 356 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1575, allocations: 0.7762 MB / 356.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.1576, allocations: 22.28 kB / 356.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1578, allocations: 95.33 kB / 356.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1578, allocations: 0 / 356.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4568/0.6146, allocations: 8.223 MB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.35, allocations: 3.938 kB / 365.1 MB, free: 13.27 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches