Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001421/0.001421, allocations: 88.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001507/0.001507, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 18.57 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.482/1.482, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 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.InvertersApartRecord,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.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.329e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01531/0.01533, allocations: 12.41 MB / 284.7 MB, free: 5.352 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1686/0.184, allocations: 17.89 MB / 302.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002049/0.186, allocations: 137.6 kB / 302.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.1891, allocations: 1.141 MB / 303.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007439/0.1966, allocations: 2.424 MB / 306.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005131/0.2017, allocations: 1.458 MB / 307.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008392/0.2101, allocations: 6.771 MB / 314.5 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000514/0.2106, allocations: 261.2 kB / 314.8 MB, free: 5.742 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001565/0.2122, allocations: 1.567 MB / 316.4 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008234/0.213, allocations: 0.7901 MB / 317.2 MB, free: 3.953 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.2132, allocations: 76 kB / 317.2 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003045/0.2162, allocations: 1.213 MB / 318.4 MB, free: 2.664 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.2164, allocations: 333.5 kB / 318.8 MB, free: 2.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00069/0.2171, allocations: 0.7437 MB / 319.5 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004242/0.2213, allocations: 3.752 MB / 323.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2213, allocations: 0 / 323.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2213, allocations: 0 / 323.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.145e-05/0.2214, allocations: 0 / 323.3 MB, free: 13.82 MB / 282.7 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.005827/0.2272, allocations: 3.689 MB / 327 MB, free: 10.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.2273, allocations: 12.03 kB / 327 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006301/0.2279, allocations: 457.4 kB / 327.4 MB, free: 9.613 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003969/0.2319, allocations: 2.581 MB / 330 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.2319, allocations: 37 kB / 330 MB, free: 6.898 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.2321, allocations: 55.95 kB / 330.1 MB, free: 6.844 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.2336, allocations: 0.7343 MB / 330.8 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2336, allocations: 4 kB / 330.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.228e-05/0.2337, allocations: 23.94 kB / 330.8 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.2337, allocations: 23.98 kB / 330.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.2355, allocations: 0.8124 MB / 331.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00587/0.2414, allocations: 2.767 MB / 334.5 MB, free: 2.422 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.2427, allocations: 0.5186 MB / 335 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.2438, allocations: 0.5614 MB / 335.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02926/0.273, allocations: 15.24 MB / 350.8 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008487/0.2739, allocations: 358 kB / 351.1 MB, free: 1.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.2739, allocations: 0 / 351.1 MB, free: 1.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.002707/0.2766, allocations: 1.128 MB / 352.2 MB, free: 212 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.678e-05/0.2767, allocations: 59.39 kB / 352.3 MB, free: 140 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004033/0.2807, allocations: 2.958 MB / 355.3 MB, free: 13.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.628e-05/0.2808, allocations: 41.69 kB / 355.3 MB, free: 13.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001789/0.2826, allocations: 1.495 MB / 356.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.2828, allocations: 166.6 kB / 357 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003569/0.2831, allocations: 226.4 kB / 357.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.2833, allocations: 341.9 kB / 357.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006319/0.2839, allocations: 241.8 kB / 357.8 MB, free: 10.65 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000987/0.2849, allocations: 0.5979 MB / 358.4 MB, free: 9.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.2866, allocations: 0.8983 MB / 359.2 MB, free: 8.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.577e-06/0.2866, allocations: 4 kB / 359.3 MB, free: 8.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002555/0.2892, allocations: 1.287 MB / 360.5 MB, free: 7.508 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2892, allocations: 8 kB / 360.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/0.2893, allocations: 80 kB / 360.6 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.104e-05/0.2893, allocations: 20 kB / 360.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007734/0.2901, allocations: 200.8 kB / 360.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-05/0.2902, allocations: 35.86 kB / 360.9 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009439/0.2911, allocations: 115.2 kB / 361 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.2912, allocations: 64 kB / 361.1 MB, free: 6.996 MB / 314.7 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.0007803/0.292, allocations: 437.5 kB / 361.5 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005035/0.2925, allocations: 409.5 kB / 361.9 MB, free: 6.156 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/0.2956, allocations: 1.196 MB / 363.1 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.2956, allocations: 7.938 kB / 363.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.2956, allocations: 3.25 kB / 363.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.2956, allocations: 7.922 kB / 363.1 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003536/0.2991, allocations: 1.932 MB / 365 MB, free: 2.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001036/0.2992, allocations: 68 kB / 365.1 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.2997, allocations: 95.92 kB / 365.2 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.2997, allocations: 4 kB / 365.2 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-05/0.2998, allocations: 35.98 kB / 365.2 MB, free: 2.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.2998, allocations: 3.938 kB / 365.2 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2998, allocations: 4 kB / 365.2 MB, free: 2.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.3024, allocations: 1.316 MB / 366.5 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008339/0.3033, allocations: 447.1 kB / 367 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.3035, allocations: 8 kB / 367 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006991/0.3042, allocations: 35.84 kB / 367 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.3044, allocations: 67.92 kB / 367.1 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.304e-05/0.3045, allocations: 39.98 kB / 367.1 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00286/0.3074, allocations: 1.907 MB / 369 MB, free: 14.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3074, allocations: 0 / 369 MB, free: 14.92 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001704/0.3091, allocations: 0.5853 MB / 369.6 MB, free: 14.33 MB / 330.7 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.001359/0.3104, allocations: 0.8354 MB / 370.5 MB, free: 13.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.3122, allocations: 0.775 MB / 371.2 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3122, allocations: 0 / 371.2 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.3131, allocations: 436.1 kB / 371.7 MB, free: 12.24 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.3157, allocations: 0.6246 MB / 372.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006977/0.3227, allocations: 4.395 MB / 376.7 MB, free: 7.156 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.3241, allocations: 1.117 MB / 377.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001121/0.3253, allocations: 353.2 kB / 378.1 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002621/0.3255, allocations: 152.5 kB / 378.3 MB, free: 5.508 MB / 330.7 MB Notification: Performance of SimCode: time 1.252e-06/0.3255, allocations: 0 / 378.3 MB, free: 5.508 MB / 330.7 MB Notification: Performance of Templates: time 0.06094/0.3865, allocations: 32.45 MB / 410.7 MB, free: 5.574 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.491676175966859]