Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001871/0.001871, allocations: 109 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002496/0.002496, allocations: 213.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 230.3 MB / 257.9 MB, free: 8.246 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 59.89 kB / 378.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2545, allocations: 53.37 MB / 432.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01905/0.2736, allocations: 15.37 MB / 447.5 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02801/0.3016, allocations: 20.86 MB / 468.3 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002431/0.304, allocations: 138.5 kB / 468.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003736/0.3077, allocations: 1.263 MB / 469.7 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00874/0.3165, allocations: 2.424 MB / 472.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00534/0.3218, allocations: 1.457 MB / 473.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.3337, allocations: 6.723 MB / 480.3 MB, free: 6.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007316/0.3344, allocations: 274.2 kB / 480.6 MB, free: 6.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.3363, allocations: 1.186 MB / 481.8 MB, free: 5.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001477/0.3378, allocations: 1.141 MB / 482.9 MB, free: 4.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.338, allocations: 79.98 kB / 483 MB, free: 3.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004233/0.3423, allocations: 1.475 MB / 484.5 MB, free: 2.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00036/0.3426, allocations: 341.5 kB / 484.8 MB, free: 2.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001477/0.3441, allocations: 1.432 MB / 486.3 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005207/0.3493, allocations: 4.001 MB / 490.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3493, allocations: 0 / 490.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3493, allocations: 4 kB / 490.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.447e-05/0.3493, allocations: 0 / 490.3 MB, free: 12.67 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005858/0.3552, allocations: 3.886 MB / 494.2 MB, free: 8.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3552, allocations: 12.03 kB / 494.2 MB, free: 8.711 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004685/0.3557, allocations: 433.3 kB / 494.6 MB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/0.3594, allocations: 2.349 MB / 496.9 MB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.3595, allocations: 36.98 kB / 497 MB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.3596, allocations: 55.95 kB / 497 MB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.3611, allocations: 0.7265 MB / 497.8 MB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3611, allocations: 3.938 kB / 497.8 MB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.912e-05/0.3612, allocations: 24 kB / 497.8 MB, free: 4.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.708e-05/0.3612, allocations: 23.98 kB / 497.8 MB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.363, allocations: 0.8202 MB / 498.6 MB, free: 4.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005634/0.3686, allocations: 3.047 MB / 0.4899 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.3699, allocations: 0.5281 MB / 0.4904 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.371, allocations: 0.573 MB / 0.491 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0286/0.3996, allocations: 13.78 MB / 0.5044 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008917/0.4004, allocations: 369.6 kB / 0.5048 GB, free: 1.379 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.015e-06/0.4004, allocations: 0 / 0.5048 GB, free: 1.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.00269/0.4031, allocations: 1.122 MB / 0.5059 GB, free: 256 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.4032, allocations: 67.39 kB / 0.506 GB, free: 176 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004218/0.4074, allocations: 3.079 MB / 0.509 GB, free: 13.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.256e-05/0.4075, allocations: 37.7 kB / 0.509 GB, free: 13.05 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.4091, allocations: 1.589 MB / 0.5106 GB, free: 11.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.4092, allocations: 174.5 kB / 0.5107 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000333/0.4096, allocations: 242.3 kB / 0.5109 GB, free: 11.04 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4097, allocations: 334 kB / 0.5113 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006357/0.4104, allocations: 245.8 kB / 0.5115 GB, free: 10.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009423/0.4113, allocations: 0.6018 MB / 0.5121 GB, free: 9.688 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.4129, allocations: 0.8974 MB / 0.513 GB, free: 8.617 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.4129, allocations: 7.938 kB / 0.513 GB, free: 8.609 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002307/0.4152, allocations: 1.259 MB / 0.5142 GB, free: 7.344 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.4153, allocations: 12 kB / 0.5142 GB, free: 7.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000111/0.4154, allocations: 80 kB / 0.5143 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.849e-05/0.4154, allocations: 16 kB / 0.5143 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007466/0.4162, allocations: 208.1 kB / 0.5145 GB, free: 7.035 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.073e-05/0.4162, allocations: 23.92 kB / 0.5145 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000948/0.4171, allocations: 111.3 kB / 0.5146 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.4172, allocations: 64 kB / 0.5147 GB, free: 6.84 MB / 430.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.0007594/0.418, allocations: 460.4 kB / 0.5151 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004238/0.4184, allocations: 421.3 kB / 0.5155 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00278/0.4212, allocations: 1.211 MB / 0.5167 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.4212, allocations: 7.984 kB / 0.5167 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4212, allocations: 0 / 0.5167 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4212, allocations: 0 / 0.5167 GB, free: 4.742 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.4249, allocations: 2.122 MB / 0.5188 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-05/0.425, allocations: 71.98 kB / 0.5189 GB, free: 2.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005084/0.4255, allocations: 91.92 kB / 0.519 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.4255, allocations: 4 kB / 0.519 GB, free: 2.395 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.4256, allocations: 32 kB / 0.519 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4256, allocations: 0 / 0.519 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4256, allocations: 7.938 kB / 0.519 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/0.428, allocations: 1.347 MB / 0.5203 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008712/0.4289, allocations: 443.1 kB / 0.5207 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.4292, allocations: 12 kB / 0.5207 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006992/0.4299, allocations: 31.95 kB / 0.5208 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.43, allocations: 59.88 kB / 0.5208 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.085e-05/0.4301, allocations: 39.98 kB / 0.5209 GB, free: 420 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003613/0.4337, allocations: 2.011 MB / 0.5228 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4337, allocations: 4 kB / 0.5228 GB, free: 14.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002/0.4357, allocations: 0.5969 MB / 0.5234 GB, free: 13.8 MB / 446.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.001222/0.4369, allocations: 0.7805 MB / 0.5242 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.4386, allocations: 0.7713 MB / 0.5249 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4386, allocations: 0 / 0.5249 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00084/0.4395, allocations: 434.9 kB / 0.5254 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/0.442, allocations: 0.6346 MB / 0.526 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006685/0.4487, allocations: 4.59 MB / 0.5305 GB, free: 6.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.4501, allocations: 1.71 MB / 0.5321 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009511/0.451, allocations: 365.3 kB / 0.5325 GB, free: 4.395 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.4513, allocations: 147.4 kB / 0.5326 GB, free: 4.25 MB / 446.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4513, allocations: 0 / 0.5326 GB, free: 4.25 MB / 446.1 MB Notification: Performance of Templates: time 0.2272/0.6785, allocations: 32.75 MB / 0.5646 GB, free: 85.09 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.973622211255133]