Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001831/0.001831, allocations: 116.9 kB / 18.41 MB, free: 4.664 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.002114/0.002114, allocations: 190.9 kB / 21.35 MB, free: 1.734 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.38/1.38, allocations: 222.9 MB / 247.1 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 179] 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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 55.91 kB / 358.7 MB, free: 8.309 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08276, allocations: 49.44 MB / 408.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1822/0.265, allocations: 26.7 MB / 434.8 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02176/0.2868, allocations: 22.34 MB / 457.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004384/0.2912, allocations: 177.7 kB / 457.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004781/0.296, allocations: 1.768 MB / 459.1 MB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.3068, allocations: 3.222 MB / 462.3 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.3119, allocations: 1.626 MB / 463.9 MB, free: 9.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01839/0.3303, allocations: 12.67 MB / 476.6 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.3317, allocations: 0.8648 MB / 477.5 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003644/0.3354, allocations: 2.071 MB / 479.5 MB, free: 2.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003432/0.3388, allocations: 2.1 MB / 481.6 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004996/0.3393, allocations: 132.7 kB / 481.8 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005273/0.3446, allocations: 1.537 MB / 483.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007878/0.3454, allocations: 0.5971 MB / 483.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003825/0.3492, allocations: 2.624 MB / 486.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.3598, allocations: 6.664 MB / 493.2 MB, free: 5.051 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3599, allocations: 0 / 493.2 MB, free: 5.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3599, allocations: 0 / 493.2 MB, free: 5.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001501/0.36, allocations: 7.938 kB / 493.2 MB, free: 5.043 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01078/0.3708, allocations: 6.927 MB / 0.4884 GB, free: 14.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.3709, allocations: 8.031 kB / 0.4884 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009088/0.3718, allocations: 0.7802 MB / 0.4892 GB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006422/0.3782, allocations: 4.659 MB / 0.4937 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.029e-05/0.3783, allocations: 69.98 kB / 0.4938 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.3785, allocations: 99.95 kB / 0.4939 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002241/0.3807, allocations: 1.305 MB / 0.4952 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.3808, allocations: 0 / 0.4952 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.3809, allocations: 32.88 kB / 0.4952 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.649e-05/0.3809, allocations: 39.97 kB / 0.4952 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002506/0.3834, allocations: 1.484 MB / 0.4967 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008732/0.3922, allocations: 5.621 MB / 0.5022 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3939, allocations: 0.9935 MB / 0.5031 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001685/0.3956, allocations: 1.219 MB / 0.5043 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05838/0.454, allocations: 59.82 MB / 0.5627 GB, free: 9.512 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.4551, allocations: 0.5559 MB / 0.5633 GB, free: 8.941 MB / 478.1 MB Notification: Performance of pre-optimization done (n=85): time 2.345e-06/0.4551, allocations: 0 / 0.5633 GB, free: 8.941 MB / 478.1 MB Notification: Performance of matching and sorting (n=85): time 0.003638/0.4587, allocations: 1.907 MB / 0.5651 GB, free: 7.027 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.4588, allocations: 71.94 kB / 0.5652 GB, free: 6.945 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006497/0.4653, allocations: 5.586 MB / 0.5707 GB, free: 1.387 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.764e-05/0.4654, allocations: 41.7 kB / 0.5707 GB, free: 1.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002649/0.4681, allocations: 2.972 MB / 0.5736 GB, free: 14.36 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000282/0.4684, allocations: 309.4 kB / 0.5739 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005187/0.4689, allocations: 423 kB / 0.5743 GB, free: 13.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.469, allocations: 309.1 kB / 0.5746 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008481/0.4699, allocations: 403.8 kB / 0.575 GB, free: 12.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.4712, allocations: 1.083 MB / 0.576 GB, free: 11.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.4736, allocations: 1.615 MB / 0.5776 GB, free: 9.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4736, allocations: 11.94 kB / 0.5776 GB, free: 9.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003474/0.4771, allocations: 2.234 MB / 0.5798 GB, free: 7.316 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.4772, allocations: 16 kB / 0.5798 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002036/0.4774, allocations: 164.1 kB / 0.58 GB, free: 7.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.087e-05/0.4774, allocations: 39.94 kB / 0.58 GB, free: 7.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.4786, allocations: 355.4 kB / 0.5804 GB, free: 6.754 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.033e-05/0.4786, allocations: 54.06 kB / 0.5804 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.4801, allocations: 190.7 kB / 0.5806 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.4803, allocations: 128 kB / 0.5807 GB, free: 6.391 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001166/0.4814, allocations: 0.7043 MB / 0.5814 GB, free: 5.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006923/0.4821, allocations: 0.7492 MB / 0.5821 GB, free: 4.922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/0.4863, allocations: 2.171 MB / 0.5843 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.4864, allocations: 4 kB / 0.5843 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.4864, allocations: 7.938 kB / 0.5843 GB, free: 2.73 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4864, allocations: 3.984 kB / 0.5843 GB, free: 2.727 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005184/0.4916, allocations: 3.596 MB / 0.5878 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000178/0.4918, allocations: 140 kB / 0.5879 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000743/0.4925, allocations: 155.9 kB / 0.5881 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4925, allocations: 0 / 0.5881 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.4926, allocations: 59.98 kB / 0.5881 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/0.4927, allocations: 7.5 kB / 0.5881 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4927, allocations: 3.938 kB / 0.5881 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003344/0.496, allocations: 2.193 MB / 0.5903 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001199/0.4972, allocations: 0.8553 MB / 0.5911 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/0.4977, allocations: 16 kB / 0.5911 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009903/0.4987, allocations: 35.95 kB / 0.5912 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.4989, allocations: 96.44 kB / 0.5913 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.499, allocations: 67.98 kB / 0.5913 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004542/0.5036, allocations: 3.612 MB / 0.5948 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5036, allocations: 4 kB / 0.5948 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002021/0.5056, allocations: 1.077 MB / 0.5959 GB, free: 6.727 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001719/0.5074, allocations: 1.19 MB / 0.5971 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002478/0.5098, allocations: 1.428 MB / 0.5985 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5099, allocations: 4 kB / 0.5985 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.511, allocations: 0.7668 MB / 0.5992 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/0.5153, allocations: 1.185 MB / 0.6004 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.5267, allocations: 8.37 MB / 0.6085 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002087/0.5288, allocations: 2.595 MB / 0.6111 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006009/0.5294, allocations: 299.4 kB / 0.6114 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/0.5295, allocations: 0 / 0.6114 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of Templates: time 0.4548/0.9843, allocations: 70.59 MB / 0.6803 GB, free: 136.8 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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: 17.09890061803162]