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.001364/0.001364, allocations: 192 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 226.6 MB / 244.7 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007069/0.0007069, allocations: 100.4 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002605, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2134, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.007627/0.2211, allocations: 13.03 MB / 421.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0168/0.2379, allocations: 18.89 MB / 440 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.2397, allocations: 27.81 kB / 440 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.2424, allocations: 0.9643 MB / 441 MB, free: 10.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007092/0.2495, allocations: 1.844 MB / 442.8 MB, free: 8.875 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004333/0.2539, allocations: 1.12 MB / 443.9 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009593/0.2635, allocations: 6.132 MB / 450.1 MB, free: 1.598 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009201/0.2645, allocations: 421.5 kB / 450.5 MB, free: 1.156 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.266, allocations: 0.9562 MB / 451.4 MB, free: 200 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.2671, allocations: 1.017 MB / 452.4 MB, free: 15.17 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001518/0.2672, allocations: 44 kB / 452.5 MB, free: 15.13 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003657/0.2709, allocations: 1.345 MB / 453.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.2712, allocations: 274 kB / 454.1 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001429/0.2726, allocations: 1.283 MB / 455.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002544/0.2752, allocations: 2.679 MB / 458.1 MB, free: 9.523 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2752, allocations: 4 kB / 458.1 MB, free: 9.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2752, allocations: 0 / 458.1 MB, free: 9.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.974e-05/0.2753, allocations: 0 / 458.1 MB, free: 9.52 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.004461/0.2797, allocations: 3.225 MB / 461.3 MB, free: 6.219 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.2798, allocations: 15.91 kB / 461.3 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003607/0.2802, allocations: 395.2 kB / 461.7 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.2834, allocations: 2.433 MB / 464.1 MB, free: 3.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.2835, allocations: 40.94 kB / 464.2 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.2836, allocations: 51.91 kB / 464.2 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.2849, allocations: 0.7499 MB / 465 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2849, allocations: 3.938 kB / 465 MB, free: 2.457 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/0.285, allocations: 19.98 kB / 465 MB, free: 2.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.285, allocations: 24 kB / 465 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.2866, allocations: 0.8554 MB / 465.9 MB, free: 1.559 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.2915, allocations: 3.082 MB / 468.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2927, allocations: 0.6181 MB / 469.6 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.2937, allocations: 0.6711 MB / 470.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02796/0.3217, allocations: 30.76 MB / 0.4893 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007982/0.3225, allocations: 393.4 kB / 0.4896 GB, free: 9.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.495e-06/0.3225, allocations: 0 / 0.4896 GB, free: 9.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.00254/0.3251, allocations: 1.152 MB / 0.4908 GB, free: 8.508 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.3251, allocations: 67.19 kB / 0.4908 GB, free: 8.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003462/0.3286, allocations: 2.896 MB / 0.4937 GB, free: 5.523 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.475e-05/0.3287, allocations: 33.7 kB / 0.4937 GB, free: 5.484 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.3299, allocations: 1.482 MB / 0.4951 GB, free: 3.992 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.33, allocations: 169.7 kB / 0.4953 GB, free: 3.824 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.3301, allocations: 16 kB / 0.4953 GB, free: 3.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3302, allocations: 337.9 kB / 0.4956 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/0.3308, allocations: 265.8 kB / 0.4959 GB, free: 3.215 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007496/0.3316, allocations: 0.6138 MB / 0.4965 GB, free: 2.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.333, allocations: 0.9364 MB / 0.4974 GB, free: 1.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.333, allocations: 4 kB / 0.4974 GB, free: 1.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00216/0.3352, allocations: 1.269 MB / 0.4986 GB, free: 40 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3352, allocations: 8.188 kB / 0.4986 GB, free: 32 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1799/0.5151, allocations: 83.36 kB / 0.4987 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-05/0.5152, allocations: 17.5 kB / 0.4987 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008607/0.516, allocations: 208.2 kB / 0.4989 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.137e-05/0.5161, allocations: 26.2 kB / 0.499 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.5172, allocations: 121.7 kB / 0.4991 GB, free: 96.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.5174, allocations: 63.75 kB / 0.4991 GB, free: 96.34 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.0008692/0.5182, allocations: 440.4 kB / 0.4996 GB, free: 96.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004033/0.5187, allocations: 380.9 kB / 0.4999 GB, free: 96.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/0.5216, allocations: 1.238 MB / 0.5011 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5216, allocations: 4.781 kB / 0.5011 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5217, allocations: 0 / 0.5011 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.5217, allocations: 3.766 kB / 0.5011 GB, free: 96.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003385/0.5251, allocations: 2.127 MB / 0.5032 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.774e-05/0.5252, allocations: 69.11 kB / 0.5033 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.5257, allocations: 108.5 kB / 0.5034 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.5257, allocations: 3.844 kB / 0.5034 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.5257, allocations: 29.8 kB / 0.5034 GB, free: 95.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.5257, allocations: 2.812 kB / 0.5034 GB, free: 95.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5257, allocations: 7.531 kB / 0.5034 GB, free: 95.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.5277, allocations: 1.359 MB / 0.5048 GB, free: 94.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005496/0.5282, allocations: 476.2 kB / 0.5052 GB, free: 94.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.5285, allocations: 15.55 kB / 0.5052 GB, free: 94.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.5291, allocations: 38.94 kB / 0.5053 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5292, allocations: 66.31 kB / 0.5053 GB, free: 94.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.073e-05/0.5293, allocations: 37.98 kB / 0.5054 GB, free: 94.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002155/0.5315, allocations: 1.871 MB / 0.5072 GB, free: 93.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5315, allocations: 0 / 0.5072 GB, free: 93.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001383/0.5329, allocations: 0.5836 MB / 0.5078 GB, free: 93.5 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.001034/0.5339, allocations: 0.7711 MB / 0.5085 GB, free: 93.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.5353, allocations: 0.8558 MB / 0.5093 GB, free: 93.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5353, allocations: 3.5 kB / 0.5094 GB, free: 93.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006384/0.536, allocations: 466.2 kB / 0.5098 GB, free: 92.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.5384, allocations: 0.5769 MB / 0.5104 GB, free: 92.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005395/0.5438, allocations: 4.964 MB / 0.5152 GB, free: 88.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007242/0.5445, allocations: 1.661 MB / 0.5168 GB, free: 86.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/0.5448, allocations: 159.4 kB / 0.517 GB, free: 86.45 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5448, allocations: 0 / 0.517 GB, free: 86.45 MB / 378.7 MB Notification: Performance of Templates: time 0.04043/0.5852, allocations: 37.04 MB / 0.5532 GB, free: 49.5 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