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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001218, allocations: 100.8 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 200.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.7 MB / 246.4 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002387/0.0002387, allocations: 8 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08714, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01132/0.09851, allocations: 13.04 MB / 371.7 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.19/0.2885, allocations: 18.9 MB / 390.6 MB, free: 3.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.2901, allocations: 29.81 kB / 390.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002644/0.2928, allocations: 0.9674 MB / 391.6 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00646/0.2992, allocations: 1.837 MB / 393.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003819/0.3031, allocations: 1.112 MB / 394.5 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009719/0.3128, allocations: 6.129 MB / 400.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008509/0.3137, allocations: 414.2 kB / 401 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.3153, allocations: 0.9489 MB / 402 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.3165, allocations: 1.018 MB / 403 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.3166, allocations: 44.47 kB / 403 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004527/0.3212, allocations: 1.329 MB / 404.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.3215, allocations: 282.8 kB / 404.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007441/0.3222, allocations: 0.6204 MB / 405.3 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002782/0.325, allocations: 2.692 MB / 408 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.325, allocations: 1.406 kB / 408 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.325, allocations: 0 / 408 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.652e-05/0.3251, allocations: 0 / 408 MB, free: 10.52 MB / 318.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.004489/0.3296, allocations: 3.255 MB / 411.2 MB, free: 7.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3296, allocations: 8.031 kB / 411.2 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003888/0.33, allocations: 403.2 kB / 411.6 MB, free: 6.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003232/0.3333, allocations: 2.258 MB / 413.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.537e-05/0.3333, allocations: 37 kB / 413.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3334, allocations: 63.84 kB / 414 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.3348, allocations: 0.746 MB / 414.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3348, allocations: 0 / 414.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.3349, allocations: 20 kB / 414.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.121e-05/0.3349, allocations: 23.11 kB / 414.8 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.3365, allocations: 0.8554 MB / 415.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004815/0.3413, allocations: 3.086 MB / 418.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.3425, allocations: 0.6103 MB / 419.3 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009684/0.3435, allocations: 0.667 MB / 420 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02828/0.3718, allocations: 30.78 MB / 450.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007782/0.3726, allocations: 393.7 kB / 451.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.3726, allocations: 0 / 451.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002183/0.3748, allocations: 1.151 MB / 452.3 MB, free: 9.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.3748, allocations: 63.36 kB / 452.4 MB, free: 9.664 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.3781, allocations: 2.896 MB / 455.3 MB, free: 6.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.162e-05/0.3782, allocations: 37.7 kB / 455.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.3795, allocations: 1.485 MB / 456.8 MB, free: 5.219 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.3797, allocations: 173.7 kB / 457 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.433e-05/0.3797, allocations: 15.94 kB / 457 MB, free: 5.031 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3799, allocations: 345.9 kB / 457.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.3805, allocations: 261.9 kB / 457.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007875/0.3813, allocations: 0.6138 MB / 458.2 MB, free: 3.645 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006638/0.3819, allocations: 340.5 kB / 458.5 MB, free: 3.312 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.382, allocations: 4 kB / 458.5 MB, free: 3.309 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002036/0.384, allocations: 1.265 MB / 459.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.3841, allocations: 8 kB / 459.8 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.3842, allocations: 88.14 kB / 459.9 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.3842, allocations: 20 kB / 459.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.3849, allocations: 207.7 kB / 460.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.602e-05/0.385, allocations: 31.83 kB / 460.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000986/0.386, allocations: 119.1 kB / 460.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.3861, allocations: 64 kB / 460.3 MB, free: 1.504 MB / 366.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 ($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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006613/0.3867, allocations: 432.9 kB / 460.7 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003319/0.3871, allocations: 387.4 kB / 461.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/0.39, allocations: 1.229 MB / 462.3 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.39, allocations: 8 kB / 462.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.39, allocations: 4 kB / 462.3 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.39, allocations: 7.938 kB / 462.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.3932, allocations: 2.132 MB / 464.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001047/0.3933, allocations: 68 kB / 464.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004464/0.3938, allocations: 110.3 kB / 464.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.3938, allocations: 0 / 464.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.764e-05/0.3939, allocations: 39.94 kB / 464.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3939, allocations: 4 kB / 464.7 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3939, allocations: 3.938 kB / 464.7 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.396, allocations: 1.355 MB / 466.1 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006449/0.3967, allocations: 476.3 kB / 466.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.397, allocations: 8 kB / 466.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006261/0.3976, allocations: 47.91 kB / 466.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.3978, allocations: 59.94 kB / 466.6 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.15e-05/0.3978, allocations: 40.06 kB / 466.7 MB, free: 10.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00234/0.4002, allocations: 1.872 MB / 468.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4002, allocations: 0 / 468.5 MB, free: 9.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001333/0.4015, allocations: 0.5816 MB / 469.1 MB, free: 8.535 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001128/0.4027, allocations: 0.746 MB / 469.9 MB, free: 7.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.4043, allocations: 0.8489 MB / 470.7 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4043, allocations: 0 / 470.7 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000749/0.4051, allocations: 463.2 kB / 471.2 MB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.4073, allocations: 0.5944 MB / 471.8 MB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006182/0.4135, allocations: 4.9 MB / 476.7 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.4147, allocations: 1.661 MB / 478.3 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001275/0.416, allocations: 357.1 kB / 478.7 MB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002364/0.4162, allocations: 147.4 kB / 478.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4162, allocations: 0 / 478.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of Templates: time 0.05027/0.4665, allocations: 29.17 MB / 0.4961 GB, free: 1.676 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches