Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001929/0.001929, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001854/0.001854, allocations: 213.6 kB / 23.73 MB, free: 4.156 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.532/1.532, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2369, allocations: 53.37 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01458/0.2515, allocations: 12.89 MB / 444.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02414/0.2756, allocations: 17.98 MB / 462.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.2775, allocations: 134.5 kB / 462.6 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003744/0.2812, allocations: 1.15 MB / 463.7 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008086/0.2893, allocations: 2.409 MB / 466.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004334/0.2937, allocations: 1.414 MB / 467.5 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.3044, allocations: 6.727 MB / 474.3 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006117/0.305, allocations: 262.2 kB / 474.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001763/0.3068, allocations: 1.186 MB / 475.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.3083, allocations: 1.102 MB / 476.8 MB, free: 9.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.3085, allocations: 76 kB / 476.9 MB, free: 9.195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003432/0.3119, allocations: 1.202 MB / 478.1 MB, free: 7.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003431/0.3123, allocations: 337.4 kB / 478.4 MB, free: 7.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.3134, allocations: 1.055 MB / 479.5 MB, free: 6.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005721/0.3192, allocations: 4.04 MB / 483.5 MB, free: 2.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.212e-05/0.3192, allocations: 4 kB / 483.5 MB, free: 2.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3192, allocations: 0 / 483.5 MB, free: 2.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001831/0.3194, allocations: 0 / 483.5 MB, free: 2.535 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.006309/0.3257, allocations: 3.886 MB / 487.4 MB, free: 14.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3257, allocations: 8.031 kB / 487.4 MB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005291/0.3262, allocations: 433.3 kB / 487.8 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.3301, allocations: 2.349 MB / 490.2 MB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/0.3302, allocations: 33 kB / 490.2 MB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001399/0.3303, allocations: 59.94 kB / 490.3 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3318, allocations: 0.7304 MB / 491 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3318, allocations: 0 / 491 MB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.105e-05/0.3319, allocations: 20 kB / 491 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.3319, allocations: 19.98 kB / 491.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.3336, allocations: 0.8202 MB / 491.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00563/0.3393, allocations: 2.804 MB / 494.7 MB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3405, allocations: 0.5164 MB / 495.2 MB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.3415, allocations: 0.5653 MB / 495.8 MB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0276/0.3691, allocations: 13.73 MB / 0.4975 GB, free: 7.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008075/0.3699, allocations: 365.6 kB / 0.4979 GB, free: 7.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.424e-06/0.3699, allocations: 0 / 0.4979 GB, free: 7.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002365/0.3723, allocations: 1.122 MB / 0.499 GB, free: 6.457 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.3724, allocations: 63.39 kB / 0.4991 GB, free: 6.383 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003989/0.3764, allocations: 3.102 MB / 0.5021 GB, free: 3.281 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.099e-05/0.3764, allocations: 33.7 kB / 0.5021 GB, free: 3.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.378, allocations: 1.589 MB / 0.5037 GB, free: 1.645 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3782, allocations: 182.5 kB / 0.5038 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/0.3785, allocations: 238.3 kB / 0.5041 GB, free: 1.227 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3787, allocations: 338 kB / 0.5044 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006088/0.3793, allocations: 241.8 kB / 0.5046 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009072/0.3802, allocations: 0.598 MB / 0.5052 GB, free: 15.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.3818, allocations: 0.8974 MB / 0.5061 GB, free: 14.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.3818, allocations: 12 kB / 0.5061 GB, free: 14.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002289/0.3841, allocations: 1.267 MB / 0.5073 GB, free: 13.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3841, allocations: 16.03 kB / 0.5073 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.3842, allocations: 80 kB / 0.5074 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.093e-05/0.3842, allocations: 16 kB / 0.5074 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007593/0.385, allocations: 199.6 kB / 0.5076 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.809e-05/0.385, allocations: 27.92 kB / 0.5077 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.386, allocations: 111.3 kB / 0.5078 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.3862, allocations: 72 kB / 0.5078 GB, free: 13.01 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.0008347/0.387, allocations: 449.5 kB / 0.5083 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.3875, allocations: 421.3 kB / 0.5087 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002761/0.3902, allocations: 1.199 MB / 0.5098 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.3902, allocations: 11.98 kB / 0.5098 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.3902, allocations: 0 / 0.5098 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3902, allocations: 0 / 0.5098 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003565/0.3938, allocations: 1.992 MB / 0.5118 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/0.3939, allocations: 75.92 kB / 0.5119 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004962/0.3944, allocations: 95.86 kB / 0.5119 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3944, allocations: 0 / 0.5119 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.3945, allocations: 31.98 kB / 0.512 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.3945, allocations: 4 kB / 0.512 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3945, allocations: 8 kB / 0.512 GB, free: 8.676 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.3969, allocations: 1.347 MB / 0.5133 GB, free: 7.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009257/0.3978, allocations: 431.1 kB / 0.5137 GB, free: 6.883 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003106/0.3981, allocations: 15.98 kB / 0.5137 GB, free: 6.867 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007201/0.3989, allocations: 27.97 kB / 0.5138 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.399, allocations: 63.92 kB / 0.5138 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.45e-05/0.3991, allocations: 36 kB / 0.5139 GB, free: 6.742 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002765/0.4019, allocations: 2.007 MB / 0.5158 GB, free: 4.742 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4019, allocations: 0 / 0.5158 GB, free: 4.742 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001389/0.4032, allocations: 0.6087 MB / 0.5164 GB, free: 4.133 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.001153/0.4044, allocations: 0.7806 MB / 0.5172 GB, free: 3.344 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.4061, allocations: 0.7678 MB / 0.5179 GB, free: 2.551 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4061, allocations: 0 / 0.5179 GB, free: 2.551 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008068/0.4069, allocations: 435 kB / 0.5183 GB, free: 2.102 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.4095, allocations: 0.6436 MB / 0.519 GB, free: 1.453 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/0.4162, allocations: 4.578 MB / 0.5234 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.4174, allocations: 1.162 MB / 0.5246 GB, free: 11.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001109/0.4185, allocations: 357.3 kB / 0.5249 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.4188, allocations: 151.4 kB / 0.5251 GB, free: 11.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4188, allocations: 0 / 0.5251 GB, free: 11.12 MB / 446.1 MB Notification: Performance of Templates: time 0.2911/0.7099, allocations: 37.61 MB / 0.5618 GB, free: 87.75 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.892049968242645]