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.001127/0.001127, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001645/0.001646, allocations: 192 kB / 18.56 MB, free: 4.434 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.293/1.293, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.1919/0.1919, allocations: 44.18 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 62 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.0927, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002974/0.09572, allocations: 1.891 MB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008014/0.09655, allocations: 0.5494 MB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.091e-05/0.09662, allocations: 0 / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.814e-05/0.09668, allocations: 19.78 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.09688, allocations: 35.7 kB / 471.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.0971, allocations: 75.83 kB / 471.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.09726, allocations: 159.4 kB / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.09739, allocations: 36.97 kB / 472.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.09753, allocations: 67.77 kB / 472.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.285e-05/0.09764, allocations: 63.75 kB / 472.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.09767, allocations: 12 kB / 472.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.839e-05/0.09771, allocations: 16 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.716e-05/0.09775, allocations: 31.84 kB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.586e-05/0.09782, allocations: 59.72 kB / 472.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.09798, allocations: 139.8 kB / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.09799, allocations: 0 / 472.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.098, allocations: 8 kB / 472.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.09801, allocations: 0 / 472.5 MB, free: 11.08 MB / 350.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.0007175/0.09873, allocations: 442.1 kB / 472.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.09877, allocations: 8.031 kB / 472.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.311e-05/0.09882, allocations: 46.73 kB / 473 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.09887, allocations: 12.75 kB / 473 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.09902, allocations: 192.2 kB / 473.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.09904, allocations: 4.375 kB / 473.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.09907, allocations: 8.375 kB / 473.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.09943, allocations: 138.7 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.09946, allocations: 7.938 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.09948, allocations: 4 kB / 473.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.0995, allocations: 7.984 kB / 473.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.09984, allocations: 95.86 kB / 473.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008539/0.1007, allocations: 455.3 kB / 473.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.101, allocations: 94.52 kB / 474 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.1012, allocations: 40.92 kB / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.1012, allocations: 0 / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.1013, allocations: 30.56 kB / 474.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.1013, allocations: 4 kB / 474.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001382/0.1027, allocations: 313.1 kB / 474.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.1027, allocations: 110.8 kB / 474.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1029, allocations: 141.8 kB / 474.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1029, allocations: 33.7 kB / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.708e-05/0.103, allocations: 108.1 kB / 474.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.103, allocations: 27.64 kB / 474.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.1031, allocations: 25.7 kB / 474.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.665e-05/0.1032, allocations: 322.8 kB / 475.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/0.1034, allocations: 63.89 kB / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.1037, allocations: 92.23 kB / 475.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.1041, allocations: 134.5 kB / 475.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1041, allocations: 0 / 475.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005219/0.1047, allocations: 181.5 kB / 475.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1047, allocations: 11.94 kB / 475.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.1047, allocations: 0 / 475.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1047, allocations: 0 / 475.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/0.1053, allocations: 91.97 kB / 475.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.1067, allocations: 1.496 MB / 477.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.1069, allocations: 28.41 kB / 477.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1069, allocations: 11.94 kB / 477.2 MB, free: 5.941 MB / 350.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 9.996e-05/0.107, allocations: 121.7 kB / 477.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.1071, allocations: 11.91 kB / 477.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.1076, allocations: 162.3 kB / 477.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.1076, allocations: 4 kB / 477.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-06/0.1076, allocations: 0 / 477.5 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.1077, allocations: 3.984 kB / 477.5 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007655/0.1084, allocations: 470.2 kB / 478 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1084, allocations: 0 / 478 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.1086, allocations: 27.97 kB / 478 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1086, allocations: 0 / 478 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.1086, allocations: 8 kB / 478 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1086, allocations: 3.938 kB / 478 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1086, allocations: 0 / 478 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004997/0.1092, allocations: 251.3 kB / 478.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.1092, allocations: 85.02 kB / 478.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.1092, allocations: 0 / 478.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1095, allocations: 27.91 kB / 478.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.1095, allocations: 7.984 kB / 478.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.1095, allocations: 8 kB / 478.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.392e-05/0.1096, allocations: 113.5 kB / 478.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1096, allocations: 0 / 478.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002703/0.1099, allocations: 28.19 kB / 478.5 MB, free: 4.531 MB / 350.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.000745/0.1106, allocations: 0.7906 MB / 479.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008996/0.1115, allocations: 180 kB / 479.5 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1116, allocations: 3.938 kB / 479.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.1118, allocations: 59.95 kB / 479.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003391/0.1121, allocations: 15.94 kB / 479.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.1154, allocations: 1.973 MB / 481.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.1157, allocations: 0.704 MB / 482.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.63e-05/0.1157, allocations: 12.44 kB / 482.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.677e-05/0.1158, allocations: 35.42 kB / 482.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1158, allocations: 0 / 482.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.1348, allocations: 3.12 MB / 485.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.62, allocations: 3.984 kB / 485.4 MB, free: 13.62 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 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.mat","/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