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.001152/0.001152, allocations: 107.6 kB / 17.33 MB, free: 5.996 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.001167/0.001167, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.351/1.351, allocations: 222.9 MB / 241.9 MB, free: 13.68 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.2068/0.2068, allocations: 44.17 MB / 336.2 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 60.56 kB / 408 MB, free: 27.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 60.83 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003262/0.1085, allocations: 1.948 MB / 470.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1096, allocations: 0.53 MB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1097, allocations: 3.938 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.008e-05/0.1098, allocations: 11.92 kB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.1102, allocations: 35.75 kB / 471.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000325/0.1105, allocations: 71.91 kB / 471.4 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.1107, allocations: 147.5 kB / 471.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1109, allocations: 40.95 kB / 471.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002276/0.1112, allocations: 67.77 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1113, allocations: 63.75 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.1113, allocations: 15.94 kB / 471.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.137e-05/0.1114, allocations: 16 kB / 471.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.68e-05/0.1114, allocations: 31.91 kB / 471.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.989e-05/0.1115, allocations: 59.72 kB / 471.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.1117, allocations: 139.8 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1117, allocations: 0 / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1117, allocations: 0 / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.1117, allocations: 0 / 472 MB, free: 11.41 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.0009368/0.1127, allocations: 447 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.1127, allocations: 11.97 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.457e-05/0.1128, allocations: 46.73 kB / 472.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.1129, allocations: 12.75 kB / 472.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002174/0.1131, allocations: 195.1 kB / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1131, allocations: 4.375 kB / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.1132, allocations: 12.38 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.1135, allocations: 144.2 kB / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1136, allocations: 3.938 kB / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.1136, allocations: 0 / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1136, allocations: 0 / 472.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.114, allocations: 95.92 kB / 472.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000937/0.1149, allocations: 459.3 kB / 473.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.1153, allocations: 90.52 kB / 473.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.1154, allocations: 44.92 kB / 473.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.1155, allocations: 0 / 473.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.1155, allocations: 34.56 kB / 473.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1155, allocations: 0 / 473.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.001439/0.1169, allocations: 321.1 kB / 473.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.117, allocations: 102.8 kB / 474 MB, free: 9.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1172, allocations: 152.7 kB / 474.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.1172, allocations: 25.7 kB / 474.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.015e-05/0.1173, allocations: 116 kB / 474.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.1173, allocations: 19.7 kB / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.053e-05/0.1174, allocations: 29.7 kB / 474.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1175, allocations: 326.8 kB / 474.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.1177, allocations: 55.95 kB / 474.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.118, allocations: 96.23 kB / 474.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.1184, allocations: 134.5 kB / 474.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1184, allocations: 0 / 474.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005676/0.119, allocations: 169.4 kB / 475.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.119, allocations: 12 kB / 475.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1191, allocations: 4 kB / 475.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.1191, allocations: 0 / 475.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006347/0.1197, allocations: 83.91 kB / 475.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.1212, allocations: 1.504 MB / 476.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.1214, allocations: 24 kB / 476.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.1214, allocations: 12.06 kB / 476.7 MB, free: 6.27 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.0001072/0.1216, allocations: 121.8 kB / 476.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.1216, allocations: 15.91 kB / 476.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000508/0.1221, allocations: 166.5 kB / 477 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.1221, allocations: 64 / 477 MB, free: 5.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1221, allocations: 11.98 kB / 477 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1221, allocations: 7.938 kB / 477 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008139/0.123, allocations: 462.5 kB / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.123, allocations: 4 kB / 477.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.1232, allocations: 23.97 kB / 477.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1232, allocations: 4 kB / 477.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.1232, allocations: 0 / 477.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1232, allocations: 4.016 kB / 477.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1232, allocations: 3.984 kB / 477.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005304/0.1237, allocations: 251.3 kB / 477.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.1238, allocations: 85.02 kB / 477.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.1238, allocations: 4 kB / 477.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1241, allocations: 31.91 kB / 477.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.1241, allocations: 3.984 kB / 477.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.1242, allocations: 4 kB / 477.9 MB, free: 4.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.701e-05/0.1242, allocations: 111.2 kB / 478 MB, free: 4.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1243, allocations: 0 / 478 MB, free: 4.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000284/0.1245, allocations: 32 kB / 478 MB, free: 4.844 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.0008222/0.1254, allocations: 0.7753 MB / 478.8 MB, free: 4.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009134/0.1263, allocations: 175.8 kB / 479 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1263, allocations: 128 / 479 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.1266, allocations: 67.95 kB / 479 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.1269, allocations: 15.92 kB / 479.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.1304, allocations: 2.015 MB / 481.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.1307, allocations: 0.7079 MB / 481.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.155e-05/0.1308, allocations: 4.438 kB / 481.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.216e-05/0.1309, allocations: 39.42 kB / 481.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of SimCode: time 2.074e-06/0.1309, allocations: 0 / 481.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.1451, allocations: 2.966 MB / 484.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.1454, allocations: 245.2 kB / 485 MB, free: 13.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/1.988, allocations: 0 / 485 MB, free: 13.85 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