Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002578/0.002584, allocations: 188.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.476/3.476, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001924/0.001924, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006752/0.0006754, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2799, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02693/0.3069, allocations: 11.27 MB / 385.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.501/0.808, allocations: 16.98 MB / 402.8 MB, free: 7.336 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004717/0.8128, allocations: 29.91 kB / 402.8 MB, free: 7.324 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007185/0.82, allocations: 0.9693 MB / 403.8 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01927/0.8394, allocations: 2.058 MB / 405.8 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.8512, allocations: 1.149 MB / 407 MB, free: 5.207 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02894/0.8803, allocations: 6.087 MB / 413.1 MB, free: 2.461 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002017/0.8824, allocations: 422.5 kB / 413.5 MB, free: 2.254 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.8865, allocations: 0.828 MB / 414.3 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004464/0.891, allocations: 0.9894 MB / 415.3 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009786/0.8921, allocations: 42.66 kB / 415.4 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01307/0.9052, allocations: 1.212 MB / 416.6 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001136/0.9064, allocations: 274 kB / 416.8 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002403/0.9088, allocations: 0.6242 MB / 417.5 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009129/0.918, allocations: 2.615 MB / 420.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.9181, allocations: 3.938 kB / 420.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.519e-06/0.9181, allocations: 3.938 kB / 420.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002124/0.9184, allocations: 2.812 kB / 420.1 MB, free: 14.71 MB / 298.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.01397/0.9323, allocations: 3.267 MB / 423.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.21e-05/0.9325, allocations: 8.031 kB / 423.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001794/0.9343, allocations: 399.1 kB / 423.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.9451, allocations: 2.266 MB / 426 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.9453, allocations: 40.98 kB / 426.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.9457, allocations: 55.91 kB / 426.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008135/0.9538, allocations: 0.746 MB / 426.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.797e-05/0.9597, allocations: 0 / 426.9 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/0.9601, allocations: 20 kB / 426.9 MB, free: 8.496 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.864e-05/0.9602, allocations: 19.98 kB / 426.9 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004883/0.9651, allocations: 0.8592 MB / 427.8 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02757/0.9928, allocations: 3.064 MB / 430.8 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007572/1, allocations: 0.6181 MB / 431.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1406/1.141, allocations: 30.35 MB / 461.8 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006339/1.148, allocations: 381.6 kB / 462.2 MB, free: 1.004 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 8.055e-06/1.148, allocations: 0 / 462.2 MB, free: 1.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.008474/1.156, allocations: 1.478 MB / 463.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/1.156, allocations: 59.41 kB / 463.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/1.168, allocations: 2.917 MB / 466.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/1.168, allocations: 41.7 kB / 466.7 MB, free: 12.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003053/1.171, allocations: 1.224 MB / 467.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000666/1.172, allocations: 169.6 kB / 468 MB, free: 11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/1.172, allocations: 16 kB / 468.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003234/1.173, allocations: 346.8 kB / 468.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/1.175, allocations: 261.8 kB / 468.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002633/1.177, allocations: 0.6216 MB / 469.3 MB, free: 9.582 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002662/1.18, allocations: 344.5 kB / 469.6 MB, free: 9.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-05/1.18, allocations: 7.938 kB / 469.6 MB, free: 9.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.006573/1.187, allocations: 0.944 MB / 470.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.667e-05/1.187, allocations: 12 kB / 470.6 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004163/1.187, allocations: 83.98 kB / 470.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.731e-05/1.188, allocations: 23.95 kB / 470.7 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002553/1.19, allocations: 212.2 kB / 470.9 MB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.477e-05/1.19, allocations: 27.88 kB / 470.9 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009472/1.2, allocations: 131.6 kB / 471 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.201, allocations: 60 kB / 471.1 MB, free: 7.746 MB / 346.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.00546/1.206, allocations: 429.5 kB / 471.5 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.208, allocations: 379.4 kB / 471.9 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01602/1.224, allocations: 1.261 MB / 473.2 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/1.224, allocations: 4 kB / 473.2 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/1.224, allocations: 3.953 kB / 473.2 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.934e-05/1.224, allocations: 3.984 kB / 473.2 MB, free: 5.664 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01844/1.243, allocations: 2.139 MB / 475.3 MB, free: 3.453 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0005813/1.243, allocations: 75.92 kB / 475.4 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/1.245, allocations: 99.86 kB / 475.5 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.222e-05/1.246, allocations: 3.953 kB / 475.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004792/1.246, allocations: 40.05 kB / 475.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-05/1.246, allocations: 4 kB / 475.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.246, allocations: 0 / 475.5 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/1.258, allocations: 1.417 MB / 476.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004159/1.263, allocations: 468.2 kB / 477.4 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002213/1.265, allocations: 12 kB / 477.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006334/1.271, allocations: 44.02 kB / 477.4 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001118/1.273, allocations: 63.94 kB / 477.5 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003638/1.273, allocations: 35.98 kB / 477.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.01397/1.287, allocations: 1.884 MB / 479.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.212e-06/1.287, allocations: 4 kB / 479.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006842/1.294, allocations: 0.5855 MB / 480 MB, free: 14.66 MB / 362.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.005019/1.299, allocations: 0.7461 MB / 480.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01218/1.311, allocations: 0.8452 MB / 481.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.311, allocations: 0 / 481.6 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00406/1.316, allocations: 471.2 kB / 482.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008362/1.324, allocations: 494.4 kB / 482.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06507/1.389, allocations: 4.991 MB / 487.5 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00828/1.398, allocations: 1.731 MB / 489.3 MB, free: 5.289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/1.399, allocations: 155.4 kB / 489.4 MB, free: 5.137 MB / 362.7 MB Notification: Performance of SimCode: time 2.765e-06/1.399, allocations: 0 / 489.4 MB, free: 5.137 MB / 362.7 MB Notification: Performance of Templates: time 0.2299/1.629, allocations: 36.16 MB / 0.5133 GB, free: 0.918 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches