Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008361/0.0008362, allocations: 93 kB / 16.95 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009166/0.0009168, allocations: 181.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.54/1.54, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005076/0.0005076, allocations: 12 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1266, allocations: 47.57 MB / 328.4 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00713/0.1337, allocations: 6.775 MB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.1585, allocations: 16.78 MB / 351.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002258/0.1608, allocations: 39.62 kB / 351.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003196/0.164, allocations: 0.677 MB / 352.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007/0.1711, allocations: 1.394 MB / 354 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004634/0.1757, allocations: 0.9872 MB / 355 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005877/0.1816, allocations: 2.988 MB / 358 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004347/0.1821, allocations: 201.1 kB / 358.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006632/0.1828, allocations: 441.8 kB / 358.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/0.1833, allocations: 0.5088 MB / 359.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.343e-05/0.1834, allocations: 24 kB / 359.2 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003878/0.1873, allocations: 1.058 MB / 360.2 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.1875, allocations: 139 kB / 360.3 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003774/0.1879, allocations: 324.8 kB / 360.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.1896, allocations: 1.577 MB / 362.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1896, allocations: 0 / 362.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1897, allocations: 0 / 362.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.1897, allocations: 0 / 362.2 MB, free: 2.039 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002658/0.1923, allocations: 1.819 MB / 364.1 MB, free: 164 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1924, allocations: 8.031 kB / 364.1 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.1926, allocations: 193.7 kB / 364.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001854/0.1945, allocations: 1.301 MB / 365.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.1945, allocations: 12.56 kB / 365.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.446e-05/0.1946, allocations: 35.94 kB / 365.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008715/0.1955, allocations: 453.2 kB / 366.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1955, allocations: 0 / 366.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.1955, allocations: 12 kB / 366.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.1956, allocations: 11.98 kB / 366.1 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1967, allocations: 0.5059 MB / 366.6 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002632/0.1993, allocations: 1.639 MB / 368.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008763/0.2002, allocations: 411.4 kB / 368.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007057/0.2009, allocations: 441.8 kB / 369.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2322/0.4331, allocations: 15.24 MB / 384.3 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00065/0.4338, allocations: 276.7 kB / 384.6 MB, free: 50.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.455e-06/0.4338, allocations: 0 / 384.6 MB, free: 50.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002127/0.436, allocations: 0.919 MB / 385.5 MB, free: 50.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.436, allocations: 59.47 kB / 385.5 MB, free: 50.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.438, allocations: 1.446 MB / 387 MB, free: 49.92 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.438, allocations: 31.89 kB / 387 MB, free: 49.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005229/0.4385, allocations: 0.7221 MB / 387.7 MB, free: 49.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.4386, allocations: 98.06 kB / 387.8 MB, free: 49.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.4387, allocations: 13.72 kB / 387.8 MB, free: 49.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.4387, allocations: 328.1 kB / 388.2 MB, free: 48.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004248/0.4392, allocations: 175.3 kB / 388.3 MB, free: 48.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.4397, allocations: 384.7 kB / 388.7 MB, free: 48.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.4402, allocations: 228.5 kB / 388.9 MB, free: 48.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.4402, allocations: 2.219 kB / 388.9 MB, free: 48.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001456/0.4417, allocations: 0.7917 MB / 389.7 MB, free: 48.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.4417, allocations: 7.719 kB / 389.7 MB, free: 48.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.726e-05/0.4418, allocations: 43.52 kB / 389.8 MB, free: 48.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003014/0.4421, allocations: 135 kB / 389.9 MB, free: 48.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003941/0.4425, allocations: 117.4 kB / 390 MB, free: 48.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004679/0.443, allocations: 0.6815 MB / 390.7 MB, free: 47.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.4435, allocations: 87.59 kB / 390.8 MB, free: 47.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.149e-05/0.4436, allocations: 39.59 kB / 390.8 MB, free: 47.6 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003975/0.444, allocations: 272.9 kB / 391.1 MB, free: 47.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002084/0.4442, allocations: 186.2 kB / 391.3 MB, free: 47.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.4462, allocations: 0.7907 MB / 392.1 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4462, allocations: 7.125 kB / 392.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4462, allocations: 0 / 392.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4463, allocations: 2.719 kB / 392.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001948/0.4482, allocations: 1.359 MB / 393.4 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-05/0.4483, allocations: 37.97 kB / 393.5 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.4485, allocations: 56.52 kB / 393.5 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002092/0.4487, allocations: 130 kB / 393.7 MB, free: 46.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.127e-05/0.4488, allocations: 19.62 kB / 393.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003876/0.4492, allocations: 0.6612 MB / 394.3 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4492, allocations: 5.125 kB / 394.3 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.4503, allocations: 0.7543 MB / 395.1 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002653/0.4505, allocations: 283.4 kB / 395.4 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.4507, allocations: 9.953 kB / 395.4 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.451, allocations: 41.33 kB / 395.4 MB, free: 45.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-05/0.4511, allocations: 44.47 kB / 395.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.4512, allocations: 23.47 kB / 395.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001017/0.4522, allocations: 0.9464 MB / 396.4 MB, free: 44.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4522, allocations: 0 / 396.4 MB, free: 44.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000875/0.4531, allocations: 326.2 kB / 396.8 MB, free: 44.73 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007657/0.4539, allocations: 0.5626 MB / 397.3 MB, free: 44.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.4551, allocations: 0.5542 MB / 397.9 MB, free: 44.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4551, allocations: 0 / 397.9 MB, free: 44.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005575/0.4556, allocations: 315.8 kB / 398.2 MB, free: 44.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007871/0.4564, allocations: 253.7 kB / 398.4 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.4591, allocations: 2.522 MB / 401 MB, free: 42.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.4595, allocations: 1.156 MB / 402.1 MB, free: 41.65 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.4601, allocations: 204.7 kB / 402.3 MB, free: 41.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.4602, allocations: 87.69 kB / 402.4 MB, free: 41.54 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4602, allocations: 0 / 402.4 MB, free: 41.54 MB / 318.1 MB Notification: Performance of Templates: time 0.02476/0.4849, allocations: 18.47 MB / 420.9 MB, free: 23.12 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches