Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2476/0.2476, allocations: 46.94 MB / 360.8 MB, free: 4.293 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") translateModel(ModelicaTest.Electrical.Analog.TestSaturatingInductor,tolerance=1e-05,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|saturatingInductor.Psi|saturatingInductor.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002175, allocations: 67.89 kB / 0.4966 GB, free: 7.438 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3973, allocations: 66.03 MB / 0.5611 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.004075/0.4014, allocations: 1.925 MB / 0.563 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.4026, allocations: 0.6009 MB / 0.5636 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.029e-05/0.4026, allocations: 4 kB / 0.5636 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.173e-05/0.4027, allocations: 15.84 kB / 0.5636 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.4029, allocations: 39.64 kB / 0.5636 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.4032, allocations: 87.77 kB / 0.5637 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.4034, allocations: 163.4 kB / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.4036, allocations: 23.97 kB / 0.5639 GB, free: 1.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.4038, allocations: 75.77 kB / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.4039, allocations: 67.69 kB / 0.564 GB, free: 1.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.94e-05/0.4039, allocations: 12 kB / 0.564 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.662e-05/0.404, allocations: 16 kB / 0.5641 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.412e-05/0.404, allocations: 31.89 kB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.445e-05/0.4041, allocations: 63.67 kB / 0.5642 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.4044, allocations: 151.1 kB / 0.5643 GB, free: 1.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.4044, allocations: 0 / 0.5643 GB, free: 1.184 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4044, allocations: 0 / 0.5643 GB, free: 1.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.4044, allocations: 0 / 0.5643 GB, free: 1.184 MB / 398.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.0009032/0.4053, allocations: 377.8 kB / 0.5647 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4053, allocations: 8.031 kB / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003185/0.4056, allocations: 40.81 kB / 0.5647 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001839/0.4058, allocations: 130.4 kB / 0.5648 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.4058, allocations: 8.375 kB / 0.5648 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.4059, allocations: 8.375 kB / 0.5648 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003485/0.4062, allocations: 143.3 kB / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4062, allocations: 0 / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.4063, allocations: 0 / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.4063, allocations: 4 kB / 0.565 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.4066, allocations: 95.92 kB / 0.5651 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009181/0.4075, allocations: 426.4 kB / 0.5655 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003369/0.4078, allocations: 94.52 kB / 0.5656 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.408, allocations: 40.86 kB / 0.5656 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.408, allocations: 0 / 0.5656 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.408, allocations: 38.56 kB / 0.5656 GB, free: 15.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.408, allocations: 0 / 0.5656 GB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001444/0.4095, allocations: 313.1 kB / 0.5659 GB, free: 15.35 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001697/0.4097, allocations: 110.8 kB / 0.5661 GB, free: 15.21 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.4098, allocations: 153.5 kB / 0.5662 GB, free: 15.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.4099, allocations: 29.64 kB / 0.5662 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.24e-05/0.41, allocations: 120.1 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.41, allocations: 19.83 kB / 0.5664 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.297e-05/0.4101, allocations: 29.7 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.4103, allocations: 322.8 kB / 0.5667 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002332/0.4105, allocations: 59.95 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.4107, allocations: 92.23 kB / 0.5668 GB, free: 14.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.4112, allocations: 134.5 kB / 0.567 GB, free: 14.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4112, allocations: 0 / 0.567 GB, free: 14.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005301/0.4117, allocations: 177.5 kB / 0.5671 GB, free: 14.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.4117, allocations: 7.938 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4117, allocations: 0 / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.4118, allocations: 0 / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006046/0.4124, allocations: 87.97 kB / 0.5672 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.4143, allocations: 1.4 MB / 0.5686 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.4145, allocations: 28.12 kB / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.4145, allocations: 0 / 0.5686 GB, free: 12.39 MB / 414.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.0001324/0.4146, allocations: 129.7 kB / 0.5688 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.4147, allocations: 7.953 kB / 0.5688 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005588/0.4152, allocations: 166.2 kB / 0.5689 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.4152, allocations: 3.984 kB / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.42e-07/0.4152, allocations: 0 / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4152, allocations: 288 / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008705/0.4161, allocations: 433.4 kB / 0.5693 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4161, allocations: 0 / 0.5693 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.4163, allocations: 31.91 kB / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4163, allocations: 3.984 kB / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.4163, allocations: 8.062 kB / 0.5694 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.4163, allocations: 7.938 kB / 0.5694 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4163, allocations: 0 / 0.5694 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.4169, allocations: 263.6 kB / 0.5696 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.8e-05/0.4169, allocations: 3.953 kB / 0.5696 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.4169, allocations: 8 kB / 0.5696 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002198/0.4171, allocations: 23.91 kB / 0.5697 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.862e-05/0.4172, allocations: 11.92 kB / 0.5697 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.4172, allocations: 4 kB / 0.5697 GB, free: 11.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.384e-05/0.4173, allocations: 113.7 kB / 0.5698 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4173, allocations: 4 kB / 0.5698 GB, free: 11.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.4176, allocations: 35.94 kB / 0.5698 GB, free: 11.08 MB / 414.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.0001586/0.4177, allocations: 95.19 kB / 0.5699 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00095/0.4187, allocations: 168 kB / 0.5701 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4187, allocations: 0 / 0.5701 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.4189, allocations: 59.89 kB / 0.5701 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.4193, allocations: 19.98 kB / 0.5702 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.4207, allocations: 376.9 kB / 0.5705 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.4212, allocations: 0.6969 MB / 0.5712 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.981e-05/0.4212, allocations: 16.42 kB / 0.5712 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.722e-05/0.4213, allocations: 19.44 kB / 0.5712 GB, free: 9.574 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4213, allocations: 0 / 0.5712 GB, free: 9.574 MB / 414.1 MB Notification: Performance of Templates: time 0.005549/0.4268, allocations: 1.773 MB / 0.573 GB, free: 7.812 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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: 5.6339181929361075]