Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",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.001277/0.001277, allocations: 113.2 kB / 17.78 MB, free: 5.258 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.0012/0.0012, allocations: 184.2 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.215/0.215, allocations: 44.19 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 67.83 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3141, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002903/0.3171, allocations: 1.9 MB / 0.5203 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008668/0.318, allocations: 0.5363 MB / 0.5208 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.748e-05/0.3181, allocations: 2.469 kB / 0.5208 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.274e-05/0.3181, allocations: 22.19 kB / 0.5208 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.3184, allocations: 34.17 kB / 0.5208 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.3186, allocations: 76.05 kB / 0.5209 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001643/0.3188, allocations: 159.1 kB / 0.5211 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.3189, allocations: 27.55 kB / 0.5211 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3191, allocations: 68.66 kB / 0.5212 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.3192, allocations: 70.11 kB / 0.5212 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.3192, allocations: 12.84 kB / 0.5212 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.138e-05/0.3193, allocations: 12.31 kB / 0.5213 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.808e-05/0.3193, allocations: 35.2 kB / 0.5213 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.001e-05/0.3194, allocations: 63.83 kB / 0.5213 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002102/0.3196, allocations: 138.4 kB / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3196, allocations: 0 / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3196, allocations: 0 / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3196, allocations: 1.125 kB / 0.5215 GB, free: 1.223 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007724/0.3204, allocations: 453 kB / 0.5219 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.3205, allocations: 9.859 kB / 0.5219 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.3205, allocations: 38.69 kB / 0.522 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.3206, allocations: 16.05 kB / 0.522 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3207, allocations: 192.2 kB / 0.5222 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3207, allocations: 7.969 kB / 0.5222 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.3208, allocations: 9.844 kB / 0.5222 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.3211, allocations: 138.2 kB / 0.5223 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.3211, allocations: 0 / 0.5223 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.3212, allocations: 5.094 kB / 0.5223 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.3212, allocations: 6.281 kB / 0.5223 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.3215, allocations: 91.78 kB / 0.5224 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000795/0.3223, allocations: 454.5 kB / 0.5228 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.3227, allocations: 92.12 kB / 0.5229 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.3228, allocations: 44.67 kB / 0.523 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3229, allocations: 2.125 kB / 0.523 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.3229, allocations: 31.81 kB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.3229, allocations: 0 / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001484/0.3244, allocations: 319.3 kB / 0.5233 GB, free: 15.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/0.3245, allocations: 105.7 kB / 0.5234 GB, free: 15.72 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.3247, allocations: 144 kB / 0.5235 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.3247, allocations: 30.95 kB / 0.5236 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.141e-05/0.3248, allocations: 121.6 kB / 0.5237 GB, free: 15.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.3248, allocations: 24.69 kB / 0.5237 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.802e-05/0.3249, allocations: 25.69 kB / 0.5237 GB, free: 15.42 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3251, allocations: 324.3 kB / 0.524 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.3253, allocations: 58.05 kB / 0.5241 GB, free: 15.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.3256, allocations: 97 kB / 0.5242 GB, free: 15.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.3261, allocations: 138 kB / 0.5243 GB, free: 14.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3261, allocations: 1.062 kB / 0.5243 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005537/0.3266, allocations: 175.2 kB / 0.5245 GB, free: 14.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3267, allocations: 9.719 kB / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3267, allocations: 1.438 kB / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.3267, allocations: 0 / 0.5245 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005907/0.3273, allocations: 87.2 kB / 0.5246 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.329, allocations: 1.508 MB / 0.5261 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.3292, allocations: 23.22 kB / 0.5261 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.3292, allocations: 7.891 kB / 0.5261 GB, free: 13.37 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.3294, allocations: 119.6 kB / 0.5262 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.3294, allocations: 12.77 kB / 0.5262 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005414/0.33, allocations: 171.3 kB / 0.5264 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.33, allocations: 1.75 kB / 0.5264 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.92e-07/0.33, allocations: 0 / 0.5264 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.33, allocations: 0.5625 kB / 0.5264 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009458/0.3309, allocations: 463.2 kB / 0.5268 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.331, allocations: 0 / 0.5268 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.3311, allocations: 35.31 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.3311, allocations: 0.5156 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.3312, allocations: 2.062 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.3312, allocations: 3.938 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3312, allocations: 3.984 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.3317, allocations: 251.5 kB / 0.5271 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.932e-05/0.3318, allocations: 89.06 kB / 0.5272 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.3319, allocations: 0.7969 kB / 0.5272 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.3322, allocations: 35.02 kB / 0.5272 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.101e-05/0.3323, allocations: 9.25 kB / 0.5272 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.3323, allocations: 2.656 kB / 0.5272 GB, free: 12.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001253/0.3324, allocations: 113.8 kB / 0.5273 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.226e-06/0.3324, allocations: 0 / 0.5273 GB, free: 12.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.3328, allocations: 38 kB / 0.5274 GB, free: 12.42 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009133/0.3338, allocations: 0.7757 MB / 0.5281 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009304/0.3347, allocations: 174 kB / 0.5283 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3347, allocations: 0 / 0.5283 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.335, allocations: 70.45 kB / 0.5284 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.3353, allocations: 14.52 kB / 0.5284 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.3391, allocations: 1.996 MB / 0.5303 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3394, allocations: 0.699 MB / 0.531 GB, free: 9.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.656e-05/0.3395, allocations: 15.42 kB / 0.531 GB, free: 9.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.46e-05/0.3396, allocations: 33.05 kB / 0.5311 GB, free: 9.402 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3396, allocations: 1.562 kB / 0.5311 GB, free: 9.402 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.3656, allocations: 3.192 MB / 0.5342 GB, free: 7.754 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.57, allocations: 8.391 kB / 0.5342 GB, free: 7.75 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches