Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001818/0.001818, allocations: 83.16 kB / 20.68 MB, free: 1.035 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.002119/0.002119, allocations: 158 kB / 23.95 MB, free: 4.168 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.496/1.496, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.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.InvertersApartRecord,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.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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 325 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.895e-05/2.047e-05, allocations: 2.281 kB / 325 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01445/0.01447, allocations: 12.4 MB / 337.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02594/0.04042, allocations: 17.91 MB / 355.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.04298, allocations: 134.5 kB / 355.4 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.04627, allocations: 1.137 MB / 356.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007854/0.05413, allocations: 2.429 MB / 359 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004431/0.05856, allocations: 1.445 MB / 360.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01141/0.06997, allocations: 6.781 MB / 367.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006939/0.07066, allocations: 261.8 kB / 367.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00226/0.07292, allocations: 1.566 MB / 369.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.07414, allocations: 0.7901 MB / 369.8 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.07435, allocations: 76 kB / 369.9 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00333/0.07768, allocations: 1.217 MB / 371.1 MB, free: 6.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000348/0.07803, allocations: 329.6 kB / 371.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.07909, allocations: 0.7398 MB / 372.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004844/0.08394, allocations: 3.752 MB / 376 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.08394, allocations: 0 / 376 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.08394, allocations: 4 kB / 376 MB, free: 1.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.833e-05/0.08398, allocations: 0 / 376 MB, free: 1.941 MB / 334.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.00547/0.08945, allocations: 3.694 MB / 379.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.08949, allocations: 15.98 kB / 379.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004999/0.08999, allocations: 413.4 kB / 380.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003669/0.09366, allocations: 2.291 MB / 382.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.94e-05/0.0937, allocations: 37 kB / 382.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.09384, allocations: 51.94 kB / 382.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.09539, allocations: 0.7343 MB / 383.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.09541, allocations: 4 kB / 383.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-05/0.09549, allocations: 20 kB / 383.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.09551, allocations: 19.98 kB / 383.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001763/0.09727, allocations: 0.8202 MB / 384 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005164/0.1024, allocations: 2.754 MB / 386.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.1037, allocations: 0.5164 MB / 387.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.1048, allocations: 0.573 MB / 387.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/0.1316, allocations: 13.71 MB / 401.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008528/0.1324, allocations: 366 kB / 402 MB, free: 7.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/0.1324, allocations: 0 / 402 MB, free: 7.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002491/0.1349, allocations: 1.108 MB / 403.1 MB, free: 6.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.135, allocations: 67.39 kB / 403.1 MB, free: 6.121 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.1387, allocations: 2.954 MB / 406.1 MB, free: 3.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.877e-05/0.1387, allocations: 37.64 kB / 406.1 MB, free: 3.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.1402, allocations: 1.495 MB / 407.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.1404, allocations: 186.5 kB / 407.8 MB, free: 1.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003322/0.1407, allocations: 226.3 kB / 408 MB, free: 1.199 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1409, allocations: 337.9 kB / 408.3 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.1415, allocations: 241.9 kB / 408.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009621/0.1425, allocations: 0.6018 MB / 409.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.1441, allocations: 0.8867 MB / 410.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.1442, allocations: 4 kB / 410.1 MB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002329/0.1465, allocations: 1.248 MB / 411.3 MB, free: 13.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.1465, allocations: 15.92 kB / 411.3 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.1466, allocations: 80 kB / 411.4 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.345e-05/0.1467, allocations: 20 kB / 411.4 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007647/0.1474, allocations: 208.2 kB / 411.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/0.1475, allocations: 27.91 kB / 411.7 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.1484, allocations: 111.3 kB / 411.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/0.1485, allocations: 64 kB / 411.8 MB, free: 13.02 MB / 382.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.0007174/0.1492, allocations: 436.1 kB / 412.3 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000416/0.1497, allocations: 397.5 kB / 412.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/0.1525, allocations: 1.191 MB / 413.8 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.1525, allocations: 4 kB / 413.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1525, allocations: 0 / 413.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.1525, allocations: 7.922 kB / 413.9 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003552/0.1561, allocations: 1.936 MB / 415.8 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001088/0.1562, allocations: 75.92 kB / 415.9 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005243/0.1567, allocations: 91.92 kB / 416 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.003e-05/0.1567, allocations: 4 kB / 416 MB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.586e-05/0.1568, allocations: 32 kB / 416 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.1568, allocations: 7.984 kB / 416 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.1568, allocations: 7.922 kB / 416 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.1594, allocations: 1.304 MB / 417.3 MB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008063/0.1603, allocations: 431.1 kB / 417.7 MB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002957/0.1606, allocations: 15.98 kB / 417.7 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007349/0.1613, allocations: 36.02 kB / 417.8 MB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.1615, allocations: 59.94 kB / 417.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-05/0.1615, allocations: 39.98 kB / 417.9 MB, free: 6.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002734/0.1643, allocations: 1.899 MB / 419.8 MB, free: 4.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1643, allocations: 4 kB / 419.8 MB, free: 4.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001626/0.1659, allocations: 0.5814 MB / 420.4 MB, free: 4.387 MB / 382.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.001359/0.1673, allocations: 0.8226 MB / 421.2 MB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.169, allocations: 0.7765 MB / 422 MB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.169, allocations: 0 / 422 MB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000861/0.1699, allocations: 431.4 kB / 422.4 MB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/0.1725, allocations: 0.6036 MB / 423 MB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006393/0.1789, allocations: 4.311 MB / 427.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.1801, allocations: 1.113 MB / 428.4 MB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009756/0.181, allocations: 357.1 kB / 428.8 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.1813, allocations: 152.5 kB / 428.9 MB, free: 11.69 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1813, allocations: 0 / 428.9 MB, free: 11.69 MB / 398.1 MB Notification: Performance of Templates: time 0.06013/0.2414, allocations: 32.28 MB / 461.2 MB, free: 11.86 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.7513930052518845]