Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001497/0.001497, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001496/0.001496, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.429/1.429, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 43.92 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.246, allocations: 52.19 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01411/0.2601, allocations: 12.4 MB / 436.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.2844, allocations: 17.85 MB / 454.1 MB, free: 120 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.287, allocations: 134.6 kB / 454.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003554/0.2905, allocations: 1.135 MB / 455.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008186/0.2987, allocations: 2.351 MB / 457.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004895/0.3036, allocations: 1.41 MB / 459.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01099/0.3146, allocations: 6.525 MB / 465.6 MB, free: 4.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007474/0.3153, allocations: 261.7 kB / 465.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002618/0.318, allocations: 1.159 MB / 467 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002179/0.3201, allocations: 1.059 MB / 468.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002329/0.3204, allocations: 76 kB / 468.2 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003982/0.3244, allocations: 1.202 MB / 469.4 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004231/0.3248, allocations: 329.6 kB / 469.7 MB, free: 412 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.3262, allocations: 1.013 MB / 470.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006694/0.3329, allocations: 3.819 MB / 474.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.3329, allocations: 4 kB / 474.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3329, allocations: 0 / 474.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001188/0.333, allocations: 0 / 474.5 MB, free: 11.54 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006856/0.3399, allocations: 3.738 MB / 478.3 MB, free: 7.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.3399, allocations: 8.031 kB / 478.3 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.3405, allocations: 413.4 kB / 478.7 MB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/0.3447, allocations: 2.299 MB / 481 MB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.947e-05/0.3448, allocations: 40.98 kB / 481 MB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.3449, allocations: 51.95 kB / 481.1 MB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.3464, allocations: 0.7421 MB / 481.8 MB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3465, allocations: 0 / 481.8 MB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/0.3465, allocations: 16 kB / 481.8 MB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.3466, allocations: 23.98 kB / 481.8 MB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.3483, allocations: 0.8202 MB / 482.7 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005967/0.3542, allocations: 2.742 MB / 485.4 MB, free: 448 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3555, allocations: 0.5164 MB / 485.9 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.3565, allocations: 0.5809 MB / 486.5 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02639/0.3829, allocations: 13.69 MB / 0.4885 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008327/0.3837, allocations: 357.7 kB / 0.4888 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.125e-06/0.3838, allocations: 4 kB / 0.4888 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002526/0.3863, allocations: 1.11 MB / 0.4899 GB, free: 15.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.3863, allocations: 63.39 kB / 0.49 GB, free: 15.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004115/0.3905, allocations: 2.958 MB / 0.4928 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.621e-05/0.3905, allocations: 33.7 kB / 0.4929 GB, free: 12.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.392, allocations: 1.495 MB / 0.4943 GB, free: 11.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.3922, allocations: 178.6 kB / 0.4945 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003245/0.3925, allocations: 226.4 kB / 0.4947 GB, free: 10.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3927, allocations: 345.8 kB / 0.4951 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005963/0.3933, allocations: 241.9 kB / 0.4953 GB, free: 10.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009471/0.3943, allocations: 0.6057 MB / 0.4959 GB, free: 9.418 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.3958, allocations: 0.8896 MB / 0.4967 GB, free: 8.355 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.15e-05/0.3958, allocations: 4 kB / 0.4967 GB, free: 8.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002388/0.3982, allocations: 1.247 MB / 0.498 GB, free: 7.094 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.3982, allocations: 10.19 kB / 0.498 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001263/0.3984, allocations: 87.97 kB / 0.4981 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.011e-05/0.3984, allocations: 20.78 kB / 0.4981 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.3991, allocations: 203.6 kB / 0.4983 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.952e-05/0.3992, allocations: 23.94 kB / 0.4983 GB, free: 6.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.4002, allocations: 115.2 kB / 0.4984 GB, free: 6.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4003, allocations: 64 kB / 0.4985 GB, free: 6.582 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007836/0.4011, allocations: 433.5 kB / 0.4989 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004092/0.4015, allocations: 405.4 kB / 0.4993 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002583/0.4041, allocations: 1.186 MB / 0.5004 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4041, allocations: 8 kB / 0.5004 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4041, allocations: 0 / 0.5004 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4041, allocations: 3.984 kB / 0.5004 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.4076, allocations: 1.935 MB / 0.5023 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001053/0.4077, allocations: 71.98 kB / 0.5024 GB, free: 2.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.4082, allocations: 95.92 kB / 0.5025 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/0.4082, allocations: 7.938 kB / 0.5025 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.269e-05/0.4082, allocations: 28 kB / 0.5025 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.4082, allocations: 0 / 0.5025 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/0.4082, allocations: 4 kB / 0.5025 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002416/0.4107, allocations: 1.318 MB / 0.5038 GB, free: 1.016 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001003/0.4117, allocations: 419.2 kB / 0.5042 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.4119, allocations: 12 kB / 0.5042 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.4126, allocations: 40 kB / 0.5043 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.4127, allocations: 59.94 kB / 0.5043 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.4128, allocations: 39.98 kB / 0.5044 GB, free: 468 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002747/0.4156, allocations: 1.903 MB / 0.5062 GB, free: 14.55 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4156, allocations: 0 / 0.5062 GB, free: 14.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001441/0.417, allocations: 0.5852 MB / 0.5068 GB, free: 13.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.001203/0.4182, allocations: 0.7729 MB / 0.5075 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.4199, allocations: 0.7821 MB / 0.5083 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4199, allocations: 0 / 0.5083 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.4207, allocations: 427.9 kB / 0.5087 GB, free: 11.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.4233, allocations: 0.6076 MB / 0.5093 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007432/0.4307, allocations: 4.454 MB / 0.5137 GB, free: 6.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.4319, allocations: 1.113 MB / 0.5147 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.4323, allocations: 159.4 kB / 0.5149 GB, free: 5.516 MB / 430.1 MB Notification: Performance of SimCode: time 1.703e-06/0.4323, allocations: 0 / 0.5149 GB, free: 5.516 MB / 430.1 MB Notification: Performance of Templates: time 0.2897/0.7219, allocations: 39.2 MB / 0.5532 GB, free: 100 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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: 11.418889638967812]