Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 47.94 kB / 366.4 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1008, allocations: 52.13 MB / 418.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003426/0.1042, allocations: 2.042 MB / 420.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009488/0.1052, allocations: 0.5804 MB / 421.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.601e-05/0.1053, allocations: 0 / 421.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.557e-05/0.1053, allocations: 23.78 kB / 421.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001425/0.1055, allocations: 39.64 kB / 421.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.1058, allocations: 91.8 kB / 421.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.106, allocations: 187.3 kB / 421.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.1061, allocations: 31.83 kB / 421.5 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.1063, allocations: 95.62 kB / 421.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.1064, allocations: 75.69 kB / 421.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.1065, allocations: 16 kB / 421.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.953e-05/0.1065, allocations: 16 kB / 421.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.65e-05/0.1065, allocations: 31.91 kB / 421.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.667e-05/0.1066, allocations: 83.52 kB / 421.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.1069, allocations: 167.3 kB / 422 MB, free: 9.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.414e-05/0.1069, allocations: 7.938 kB / 422 MB, free: 9.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1069, allocations: 0 / 422 MB, free: 9.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1069, allocations: 0 / 422 MB, free: 9.203 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008177/0.1077, allocations: 470.7 kB / 422.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1077, allocations: 12.03 kB / 422.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.867e-05/0.1078, allocations: 8.125 kB / 422.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.09e-05/0.1078, allocations: 50.73 kB / 422.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.1079, allocations: 16.84 kB / 422.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.108, allocations: 200.1 kB / 422.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1081, allocations: 8.375 kB / 422.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.154e-05/0.1081, allocations: 8.375 kB / 422.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.1084, allocations: 152 kB / 422.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1084, allocations: 4 kB / 422.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.1085, allocations: 8 kB / 422.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.1085, allocations: 0 / 422.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002771/0.1087, allocations: 96.89 kB / 423 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009145/0.1097, allocations: 0.5033 MB / 423.5 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.11, allocations: 98.52 kB / 423.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.1102, allocations: 64.83 kB / 423.6 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.1102, allocations: 7.938 kB / 423.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1102, allocations: 34.5 kB / 423.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.1102, allocations: 0 / 423.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004806/0.1107, allocations: 149.7 kB / 423.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/0.1108, allocations: 102.8 kB / 423.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.1109, allocations: 161.5 kB / 424.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.1109, allocations: 25.7 kB / 424.1 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.519e-05/0.111, allocations: 120 kB / 424.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.1111, allocations: 31.73 kB / 424.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.1111, allocations: 33.7 kB / 424.3 MB, free: 6.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1113, allocations: 322.8 kB / 424.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.1114, allocations: 39.97 kB / 424.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1115, allocations: 88.08 kB / 424.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002505/0.1118, allocations: 94.55 kB / 424.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1118, allocations: 4 kB / 424.8 MB, free: 6.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003322/0.1121, allocations: 141.8 kB / 425 MB, free: 5.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1121, allocations: 8 kB / 425 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1122, allocations: 0 / 425 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1122, allocations: 0 / 425 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005772/0.1127, allocations: 87.89 kB / 425.1 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.1143, allocations: 1.508 MB / 426.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.1144, allocations: 27.81 kB / 426.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.1144, allocations: 4 kB / 426.6 MB, free: 4.137 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 (11): * Single equations (assignments): 10 * 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.0001106/0.1145, allocations: 126.5 kB / 426.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.1146, allocations: 12.05 kB / 426.7 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004573/0.115, allocations: 155.1 kB / 426.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.115, allocations: 3.938 kB / 426.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1151, allocations: 4 kB / 426.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1151, allocations: 7.922 kB / 426.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007513/0.1158, allocations: 468 kB / 427.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1158, allocations: 4 kB / 427.4 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.1159, allocations: 27.95 kB / 427.4 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.1162, allocations: 28.83 kB / 427.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.1162, allocations: 4 kB / 427.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.1173, allocations: 1.383 MB / 428.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1173, allocations: 3.984 kB / 428.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005839/0.1179, allocations: 289.2 kB / 429.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.668e-05/0.118, allocations: 100.9 kB / 429.2 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.118, allocations: 12.06 kB / 429.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1182, allocations: 11.98 kB / 429.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.1182, allocations: 7.938 kB / 429.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.1182, allocations: 3.984 kB / 429.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.264e-05/0.1183, allocations: 115.3 kB / 429.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1183, allocations: 0 / 429.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.1186, allocations: 39.95 kB / 429.4 MB, free: 1.098 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009278/0.1195, allocations: 0.8389 MB / 430.2 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006825/0.1202, allocations: 139.9 kB / 430.3 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1202, allocations: 0 / 430.3 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.1206, allocations: 158.7 kB / 430.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000247/0.1208, allocations: 12 kB / 430.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1241, allocations: 2.111 MB / 432.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.1244, allocations: 0.708 MB / 433.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.392e-05/0.1245, allocations: 16.53 kB / 433.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.1245, allocations: 43.42 kB / 433.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1245, allocations: 0 / 433.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.1491, allocations: 3.424 MB / 436.8 MB, free: 9.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.5, allocations: 0 / 436.8 MB, free: 9.66 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --stepSize=0.0100051 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.987591420998797]