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.001248/0.001248, allocations: 103.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.001305/0.001305, 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.325/1.325, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2202/0.2202, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 64.69 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.09509, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002892/0.09802, allocations: 1.879 MB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008533/0.09889, allocations: 0.5455 MB / 471.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.09897, allocations: 4 kB / 471.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.109e-05/0.09902, allocations: 11.86 kB / 471.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.09924, allocations: 39.69 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.09948, allocations: 83.81 kB / 471.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.09963, allocations: 155.4 kB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.09977, allocations: 36.95 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.09993, allocations: 67.72 kB / 472.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.1, allocations: 67.73 kB / 472.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/0.1001, allocations: 12 kB / 472.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.887e-05/0.1001, allocations: 12 kB / 472.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.13e-05/0.1002, allocations: 27.92 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.909e-05/0.1002, allocations: 67.66 kB / 472.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.1004, allocations: 143.8 kB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1004, allocations: 0 / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1004, allocations: 0 / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1004, allocations: 0 / 472.5 MB, free: 11.11 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.0007395/0.1012, allocations: 451 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.1012, allocations: 8.031 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.1013, allocations: 38.75 kB / 473 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/0.1013, allocations: 12.75 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.1015, allocations: 191.2 kB / 473.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1015, allocations: 384 / 473.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.1015, allocations: 12.38 kB / 473.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.1019, allocations: 148.2 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1019, allocations: 0 / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.1019, allocations: 3.938 kB / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1019, allocations: 0 / 473.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.1022, allocations: 95.92 kB / 473.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007775/0.103, allocations: 455.3 kB / 473.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.1034, allocations: 98.45 kB / 474 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.1035, allocations: 40.86 kB / 474 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1035, allocations: 12 kB / 474 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1036, allocations: 30.56 kB / 474.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.1036, allocations: 0 / 474.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001372/0.105, allocations: 313.1 kB / 474.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.105, allocations: 106.8 kB / 474.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1052, allocations: 153.8 kB / 474.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1052, allocations: 25.7 kB / 474.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.1053, allocations: 112.1 kB / 474.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.1053, allocations: 15.72 kB / 474.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.1053, allocations: 29.7 kB / 474.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.1054, allocations: 318.8 kB / 475.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.1057, allocations: 59.95 kB / 475.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.106, allocations: 96.23 kB / 475.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004362/0.1064, allocations: 134.5 kB / 475.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.1064, allocations: 0 / 475.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005153/0.1069, allocations: 185.4 kB / 475.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.107, allocations: 7.938 kB / 475.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.107, allocations: 4 kB / 475.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.107, allocations: 4.062 kB / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005984/0.1076, allocations: 87.84 kB / 475.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.109, allocations: 1.504 MB / 477.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.1092, allocations: 24 kB / 477.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1092, allocations: 7.938 kB / 477.2 MB, free: 5.969 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 0.0001008/0.1093, allocations: 121.8 kB / 477.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.1094, allocations: 11.89 kB / 477.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/0.1099, allocations: 166.3 kB / 477.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1099, allocations: 0 / 477.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.1099, allocations: 4 kB / 477.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1099, allocations: 0 / 477.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007922/0.1107, allocations: 462.4 kB / 478 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1107, allocations: 3.938 kB / 478 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.1109, allocations: 31.91 kB / 478 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.1109, allocations: 4 kB / 478 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.1109, allocations: 0 / 478 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.1109, allocations: 3.938 kB / 478 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.111, allocations: 192 / 478 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005157/0.1115, allocations: 247.4 kB / 478.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.1115, allocations: 89.23 kB / 478.3 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.589e-05/0.1116, allocations: 7.984 kB / 478.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.1118, allocations: 31.91 kB / 478.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/0.1118, allocations: 3.984 kB / 478.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.1119, allocations: 4 kB / 478.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.234e-05/0.1119, allocations: 113.8 kB / 478.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1119, allocations: 3.938 kB / 478.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.1122, allocations: 32 kB / 478.5 MB, free: 4.551 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.0007672/0.113, allocations: 0.7748 MB / 479.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008914/0.1139, allocations: 175.8 kB / 479.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1139, allocations: 0 / 479.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.1142, allocations: 76 kB / 479.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.1145, allocations: 11.94 kB / 479.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003302/0.1178, allocations: 1.986 MB / 481.5 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.1181, allocations: 0.7042 MB / 482.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.268e-05/0.1181, allocations: 16.36 kB / 482.3 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.1182, allocations: 31.42 kB / 482.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1182, allocations: 0 / 482.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.1368, allocations: 3.118 MB / 485.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.82, allocations: 4.062 kB / 485.4 MB, free: 13.64 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 & 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