Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 226.6 MB / 244.3 MB, free: 8.277 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007787/0.0007787, allocations: 95.06 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002209/0.000221, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2592, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.008035/0.2673, allocations: 13.02 MB / 420.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.2867, allocations: 18.91 MB / 439.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002803/0.2895, allocations: 31.81 kB / 439.4 MB, free: 11.81 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003083/0.2926, allocations: 0.9643 MB / 440.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008456/0.3011, allocations: 1.848 MB / 442.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006064/0.3072, allocations: 1.108 MB / 443.4 MB, free: 7.867 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.3179, allocations: 6.132 MB / 449.5 MB, free: 1.715 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00104/0.319, allocations: 420.5 kB / 449.9 MB, free: 1.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00197/0.321, allocations: 0.9523 MB / 450.9 MB, free: 320 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.3223, allocations: 1.01 MB / 451.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.3225, allocations: 47.98 kB / 451.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004286/0.3268, allocations: 1.334 MB / 453.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.3272, allocations: 274 kB / 453.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.3282, allocations: 0.617 MB / 454.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002783/0.331, allocations: 2.699 MB / 456.8 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.331, allocations: 0 / 456.8 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.331, allocations: 0 / 456.8 MB, free: 10.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.643e-05/0.3311, allocations: 8 kB / 456.8 MB, free: 10.3 MB / 330.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.005108/0.3362, allocations: 3.252 MB / 460.1 MB, free: 6.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3363, allocations: 8.031 kB / 460.1 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004453/0.3367, allocations: 391.2 kB / 460.5 MB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/0.3403, allocations: 2.269 MB / 462.8 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.3404, allocations: 37 kB / 462.8 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3405, allocations: 63.86 kB / 462.9 MB, free: 4.141 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.3419, allocations: 0.746 MB / 463.6 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.342, allocations: 0 / 463.6 MB, free: 3.391 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.445e-05/0.342, allocations: 23.98 kB / 463.6 MB, free: 3.367 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.3421, allocations: 16 kB / 463.6 MB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.3437, allocations: 0.8593 MB / 464.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005454/0.3491, allocations: 3.083 MB / 467.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.3504, allocations: 0.6181 MB / 468.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009956/0.3514, allocations: 0.6634 MB / 468.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03027/0.3817, allocations: 30.76 MB / 499.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008011/0.3825, allocations: 393.4 kB / 0.4883 GB, free: 10.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.3826, allocations: 0 / 0.4883 GB, free: 10.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.00243/0.385, allocations: 1.152 MB / 0.4894 GB, free: 9.457 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.3851, allocations: 63.19 kB / 0.4895 GB, free: 9.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003508/0.3886, allocations: 2.896 MB / 0.4923 GB, free: 6.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.38e-05/0.3887, allocations: 41.69 kB / 0.4923 GB, free: 6.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.39, allocations: 1.485 MB / 0.4938 GB, free: 4.934 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.3902, allocations: 161.7 kB / 0.4939 GB, free: 4.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.3902, allocations: 16 kB / 0.494 GB, free: 4.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3904, allocations: 341.9 kB / 0.4943 GB, free: 4.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.391, allocations: 265.8 kB / 0.4945 GB, free: 4.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008393/0.3918, allocations: 0.6215 MB / 0.4951 GB, free: 3.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006937/0.3925, allocations: 336.5 kB / 0.4955 GB, free: 3.035 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.3925, allocations: 4 kB / 0.4955 GB, free: 3.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002376/0.3949, allocations: 1.268 MB / 0.4967 GB, free: 1.754 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.395, allocations: 8 kB / 0.4967 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.3951, allocations: 80 kB / 0.4968 GB, free: 1.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.836e-05/0.3951, allocations: 20 kB / 0.4968 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007231/0.3959, allocations: 216.2 kB / 0.497 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.129e-05/0.3959, allocations: 31.88 kB / 0.4971 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.397, allocations: 119 kB / 0.4972 GB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3971, allocations: 64 kB / 0.4972 GB, free: 1.227 MB / 378.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 ($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.0008767/0.398, allocations: 430.1 kB / 0.4976 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003639/0.3984, allocations: 383.3 kB / 0.498 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2373/0.6357, allocations: 1.231 MB / 0.4992 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.6357, allocations: 5.219 kB / 0.4992 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.6358, allocations: 0.5156 kB / 0.4992 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.6358, allocations: 5.891 kB / 0.4992 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005026/0.6408, allocations: 2.133 MB / 0.5013 GB, free: 96.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001455/0.641, allocations: 72.16 kB / 0.5014 GB, free: 96.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.6416, allocations: 101.7 kB / 0.5015 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.989e-05/0.6416, allocations: 5.672 kB / 0.5015 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.811e-05/0.6417, allocations: 34.58 kB / 0.5015 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.6417, allocations: 2.078 kB / 0.5015 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.6417, allocations: 3.062 kB / 0.5015 GB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/0.6449, allocations: 1.353 MB / 0.5028 GB, free: 96.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.6461, allocations: 477.3 kB / 0.5033 GB, free: 95.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003152/0.6465, allocations: 9.062 kB / 0.5033 GB, free: 95.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007256/0.6472, allocations: 48.78 kB / 0.5033 GB, free: 95.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.6474, allocations: 62.39 kB / 0.5034 GB, free: 95.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.558e-05/0.6475, allocations: 40.55 kB / 0.5034 GB, free: 95.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002881/0.6503, allocations: 1.867 MB / 0.5053 GB, free: 95.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6504, allocations: 0.5 kB / 0.5053 GB, free: 95.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002012/0.6524, allocations: 0.5902 MB / 0.5058 GB, free: 95.26 MB / 378.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 (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.001527/0.6539, allocations: 0.7465 MB / 0.5066 GB, free: 95.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.6558, allocations: 0.8504 MB / 0.5074 GB, free: 94.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.6559, allocations: 0 / 0.5074 GB, free: 94.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.6566, allocations: 464.2 kB / 0.5078 GB, free: 94.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/0.6596, allocations: 0.5935 MB / 0.5084 GB, free: 94.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007164/0.6668, allocations: 4.971 MB / 0.5133 GB, free: 91.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009409/0.6678, allocations: 1.657 MB / 0.5149 GB, free: 89.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.6681, allocations: 155.4 kB / 0.515 GB, free: 89.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6681, allocations: 0 / 0.515 GB, free: 89.23 MB / 378.7 MB Notification: Performance of Templates: time 0.07029/0.7384, allocations: 37.11 MB / 0.5513 GB, free: 52.21 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches