Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.00138/0.00138, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001416/0.001416, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.543/1.543, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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(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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 55.91 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1097, allocations: 53.33 MB / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2144/0.3241, allocations: 26.81 MB / 453.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03647/0.3605, allocations: 22.43 MB / 476 MB, free: 9.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006992/0.3675, allocations: 263.6 kB / 476.3 MB, free: 9.246 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0062/0.3737, allocations: 1.787 MB / 478.1 MB, free: 7.984 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.3875, allocations: 3.256 MB / 481.3 MB, free: 5.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00687/0.3944, allocations: 1.628 MB / 483 MB, free: 4.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02237/0.4167, allocations: 12.87 MB / 495.8 MB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.4181, allocations: 0.5078 MB / 496.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004062/0.4222, allocations: 2.182 MB / 498.5 MB, free: 8.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004214/0.4264, allocations: 2.107 MB / 0.4889 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.427, allocations: 136 kB / 0.489 GB, free: 6.426 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006097/0.4331, allocations: 1.537 MB / 0.4905 GB, free: 4.887 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001427/0.4345, allocations: 0.5971 MB / 0.4911 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004851/0.4393, allocations: 2.624 MB / 0.4937 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.4518, allocations: 6.671 MB / 0.5002 GB, free: 10.94 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.4518, allocations: 0 / 0.5002 GB, free: 10.94 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4518, allocations: 0 / 0.5002 GB, free: 10.94 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002234/0.452, allocations: 0 / 0.5002 GB, free: 10.94 MB / 414.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.01182/0.4639, allocations: 6.93 MB / 0.507 GB, free: 3.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4639, allocations: 8.031 kB / 0.507 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.4651, allocations: 0.7803 MB / 0.5077 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008307/0.4734, allocations: 4.66 MB / 0.5123 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.4734, allocations: 66 kB / 0.5123 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.4737, allocations: 107.9 kB / 0.5124 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002491/0.4762, allocations: 1.301 MB / 0.5137 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.4762, allocations: 0 / 0.5137 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.4764, allocations: 36 kB / 0.5137 GB, free: 12.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.186e-05/0.4764, allocations: 35.98 kB / 0.5138 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002804/0.4792, allocations: 1.488 MB / 0.5152 GB, free: 11.32 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01136/0.4906, allocations: 5.621 MB / 0.5207 GB, free: 5.613 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.4925, allocations: 0.8601 MB / 0.5216 GB, free: 4.742 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.4943, allocations: 1.059 MB / 0.5226 GB, free: 3.691 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06869/0.563, allocations: 61.07 MB / 0.5822 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.5642, allocations: 0.556 MB / 0.5828 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.286e-06/0.5642, allocations: 0 / 0.5828 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004148/0.5683, allocations: 1.918 MB / 0.5847 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.5684, allocations: 71.91 kB / 0.5847 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008834/0.5772, allocations: 5.59 MB / 0.5902 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002192/0.5774, allocations: 37.7 kB / 0.5902 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002976/0.5804, allocations: 2.961 MB / 0.5931 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004732/0.5809, allocations: 317.4 kB / 0.5934 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006496/0.5815, allocations: 427 kB / 0.5938 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5817, allocations: 305.1 kB / 0.5941 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009795/0.5826, allocations: 403.8 kB / 0.5945 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.5842, allocations: 1.087 MB / 0.5956 GB, free: 136 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002678/0.5869, allocations: 1.611 MB / 0.5971 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-05/0.5869, allocations: 8 kB / 0.5971 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004315/0.5912, allocations: 2.238 MB / 0.5993 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.5912, allocations: 16 kB / 0.5993 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/0.5915, allocations: 172 kB / 0.5995 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.445e-05/0.5915, allocations: 32 kB / 0.5995 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5928, allocations: 359.4 kB / 0.5999 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-05/0.5928, allocations: 44.48 kB / 0.5999 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/0.5948, allocations: 198.7 kB / 0.6001 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/0.595, allocations: 120 kB / 0.6002 GB, free: 11.02 MB / 0.5137 GB 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.001433/0.5964, allocations: 0.7082 MB / 0.6009 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.5975, allocations: 0.7492 MB / 0.6016 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.6026, allocations: 2.162 MB / 0.6038 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.6026, allocations: 11.98 kB / 0.6038 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6026, allocations: 0 / 0.6038 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6026, allocations: 0 / 0.6038 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006312/0.6089, allocations: 3.611 MB / 0.6073 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001957/0.6091, allocations: 140 kB / 0.6074 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008607/0.61, allocations: 151.9 kB / 0.6076 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.61, allocations: 4 kB / 0.6076 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.6101, allocations: 59.94 kB / 0.6076 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.6101, allocations: 4 kB / 0.6076 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6101, allocations: 0 / 0.6076 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004084/0.6142, allocations: 2.189 MB / 0.6098 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/0.6159, allocations: 0.8592 MB / 0.6106 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006162/0.6166, allocations: 12 kB / 0.6106 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/0.6177, allocations: 35.95 kB / 0.6107 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/0.618, allocations: 100.4 kB / 0.6108 GB, free: 92 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.6181, allocations: 68 kB / 0.6108 GB, free: 24 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006563/0.6247, allocations: 3.612 MB / 0.6143 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6247, allocations: 0 / 0.6143 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003219/0.6279, allocations: 1.088 MB / 0.6154 GB, free: 11.35 MB / 0.5294 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.001974/0.6299, allocations: 1.179 MB / 0.6166 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002932/0.6328, allocations: 1.37 MB / 0.6179 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6328, allocations: 3.938 kB / 0.6179 GB, free: 8.746 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.6341, allocations: 0.7355 MB / 0.6186 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005585/0.6397, allocations: 1.18 MB / 0.6198 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1988/0.8385, allocations: 8.267 MB / 0.6278 GB, free: 184.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00255/0.8411, allocations: 2.594 MB / 0.6304 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002208/0.8433, allocations: 0.6811 MB / 0.631 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004713/0.8437, allocations: 282 kB / 0.6313 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.363e-06/0.8437, allocations: 3.812 kB / 0.6313 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.08768/0.9314, allocations: 55.89 MB / 0.6859 GB, free: 148 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.07139852270484]