Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 108.4 kB / 18.35 MB, free: 4.629 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.001662/0.001662, allocations: 187 kB / 19.29 MB, free: 3.699 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.395/1.395, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001183/0.001183, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.08709, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02184/0.109, allocations: 25.34 MB / 354.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02446/0.1335, allocations: 21.34 MB / 375.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006548/0.1401, allocations: 182.5 kB / 375.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005459/0.1456, allocations: 1.718 MB / 377.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1815/0.3272, allocations: 3.157 MB / 380.5 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005551/0.3328, allocations: 1.57 MB / 382 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01939/0.3522, allocations: 12.4 MB / 394.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.3538, allocations: 0.859 MB / 395.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.3572, allocations: 1.878 MB / 397.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.3594, allocations: 2.059 MB / 399.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003/0.3597, allocations: 134.7 kB / 399.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003838/0.3635, allocations: 1.211 MB / 400.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000531/0.3641, allocations: 0.6084 MB / 401.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002574/0.3667, allocations: 2.642 MB / 403.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006199/0.3729, allocations: 6.671 MB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3729, allocations: 0 / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3729, allocations: 0 / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000101/0.373, allocations: 3.281 kB / 410.5 MB, free: 7.262 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.008602/0.3816, allocations: 6.726 MB / 417.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3817, allocations: 8.031 kB / 417.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009043/0.3826, allocations: 0.7482 MB / 418 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007151/0.3897, allocations: 4.624 MB / 422.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.11e-05/0.3898, allocations: 66 kB / 422.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002652/0.3901, allocations: 99.81 kB / 422.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.3924, allocations: 1.307 MB / 424.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.3925, allocations: 0.75 kB / 424.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.3926, allocations: 36 kB / 424.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.269e-05/0.3926, allocations: 41.66 kB / 424.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002432/0.3951, allocations: 1.488 MB / 425.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009802/0.4049, allocations: 5.63 MB / 431.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.4066, allocations: 0.9963 MB / 432.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001523/0.4081, allocations: 1.219 MB / 433.5 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05774/0.4658, allocations: 59.92 MB / 493.4 MB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00099/0.4669, allocations: 0.571 MB / 494 MB, free: 11.89 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.006e-06/0.4669, allocations: 0 / 494 MB, free: 11.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.004162/0.4711, allocations: 1.875 MB / 495.9 MB, free: 10 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.4711, allocations: 63.95 kB / 495.9 MB, free: 9.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007921/0.4791, allocations: 5.628 MB / 0.4898 GB, free: 4.332 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.4792, allocations: 37.7 kB / 0.4898 GB, free: 4.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002541/0.4818, allocations: 2.941 MB / 0.4927 GB, free: 1.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003592/0.4822, allocations: 302.4 kB / 0.493 GB, free: 1.051 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005382/0.4827, allocations: 422.6 kB / 0.4934 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4828, allocations: 301.1 kB / 0.4937 GB, free: 344 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008334/0.4837, allocations: 406.8 kB / 0.4941 GB, free: 15.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.4849, allocations: 1.09 MB / 0.4951 GB, free: 14.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.487, allocations: 1.611 MB / 0.4967 GB, free: 12.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/0.487, allocations: 7.938 kB / 0.4967 GB, free: 12.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003479/0.4905, allocations: 2.213 MB / 0.4989 GB, free: 10.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.4906, allocations: 16 kB / 0.4989 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001927/0.4908, allocations: 164 kB / 0.499 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-05/0.4908, allocations: 36 kB / 0.4991 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.4919, allocations: 360 kB / 0.4994 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.802e-05/0.492, allocations: 47.8 kB / 0.4995 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.4937, allocations: 186.1 kB / 0.4996 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/0.4939, allocations: 132 kB / 0.4998 GB, free: 9.469 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001328/0.4952, allocations: 0.7121 MB / 0.5005 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006274/0.4959, allocations: 0.7217 MB / 0.5012 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004085/0.5, allocations: 2.168 MB / 0.5033 GB, free: 5.852 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.5, allocations: 8 kB / 0.5033 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5, allocations: 0 / 0.5033 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.5, allocations: 3.984 kB / 0.5033 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.5053, allocations: 3.628 MB / 0.5068 GB, free: 2.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001691/0.5055, allocations: 147.9 kB / 0.507 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007282/0.5063, allocations: 147.8 kB / 0.5071 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.5063, allocations: 0 / 0.5071 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.497e-05/0.5064, allocations: 60 kB / 0.5072 GB, free: 1.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.5064, allocations: 4 kB / 0.5072 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.5064, allocations: 4.062 kB / 0.5072 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003167/0.5096, allocations: 2.157 MB / 0.5093 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.5112, allocations: 0.824 MB / 0.5101 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005082/0.5117, allocations: 16 kB / 0.5101 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.5128, allocations: 35.95 kB / 0.5101 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.513, allocations: 104.4 kB / 0.5102 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.5132, allocations: 68 kB / 0.5103 GB, free: 14.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004628/0.5178, allocations: 3.633 MB / 0.5139 GB, free: 10.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5178, allocations: 0 / 0.5139 GB, free: 10.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002544/0.5204, allocations: 1.085 MB / 0.5149 GB, free: 9.859 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001609/0.522, allocations: 1.193 MB / 0.5161 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.5244, allocations: 1.432 MB / 0.5175 GB, free: 7.402 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5244, allocations: 4 kB / 0.5175 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.5254, allocations: 0.7667 MB / 0.5182 GB, free: 6.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.5291, allocations: 0.9928 MB / 0.5192 GB, free: 5.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.5397, allocations: 8.127 MB / 0.5271 GB, free: 13.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00218/0.542, allocations: 2.604 MB / 0.5297 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002174/0.5441, allocations: 0.6927 MB / 0.5304 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.5446, allocations: 287.4 kB / 0.5306 GB, free: 9.828 MB / 462.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5446, allocations: 3.938 kB / 0.5306 GB, free: 9.824 MB / 462.1 MB Notification: Performance of Templates: time 0.252/0.7966, allocations: 55.39 MB / 0.5847 GB, free: 152.2 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches