Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002191/0.002191, allocations: 194 kB / 17.38 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.322/1.322, allocations: 226.6 MB / 244.7 MB, free: 8.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007899/0.0007898, allocations: 89.73 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002484/0.0002487, allocations: 4 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2212, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008445/0.2297, allocations: 13.57 MB / 421.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01929/0.249, allocations: 18.98 MB / 440.6 MB, free: 11.08 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.2513, allocations: 31.81 kB / 440.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003774/0.2551, allocations: 0.972 MB / 441.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009483/0.2647, allocations: 1.887 MB / 443.5 MB, free: 8.176 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004458/0.2692, allocations: 1.116 MB / 444.6 MB, free: 7.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01138/0.2806, allocations: 6.245 MB / 450.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2817, allocations: 446 kB / 451.3 MB, free: 332 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001733/0.2834, allocations: 0.9874 MB / 452.3 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.2849, allocations: 1.048 MB / 453.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002139/0.2851, allocations: 48 kB / 453.4 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003983/0.2891, allocations: 1.342 MB / 454.7 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004157/0.2895, allocations: 281.8 kB / 455 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.2914, allocations: 1.337 MB / 456.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003161/0.2945, allocations: 2.87 MB / 459.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2946, allocations: 0 / 459.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2946, allocations: 0 / 459.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.824e-05/0.2947, allocations: 0 / 459.2 MB, free: 8.375 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.00482/0.2995, allocations: 3.346 MB / 462.5 MB, free: 4.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2995, allocations: 8.031 kB / 462.5 MB, free: 4.945 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004335/0.3, allocations: 407 kB / 462.9 MB, free: 4.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003456/0.3034, allocations: 2.491 MB / 465.4 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.3035, allocations: 40.94 kB / 465.5 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.3036, allocations: 51.91 kB / 465.5 MB, free: 1.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.3049, allocations: 0.7538 MB / 466.3 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.305, allocations: 4 kB / 466.3 MB, free: 1.129 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.541e-05/0.305, allocations: 16 kB / 466.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.275e-05/0.3051, allocations: 19.98 kB / 466.3 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.3066, allocations: 0.8554 MB / 467.2 MB, free: 244 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005185/0.3118, allocations: 3.126 MB / 470.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.313, allocations: 0.6228 MB / 470.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.3141, allocations: 0.6751 MB / 471.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02873/0.3428, allocations: 30.78 MB / 0.4906 GB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007599/0.3436, allocations: 389.4 kB / 0.491 GB, free: 8.293 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.785e-06/0.3436, allocations: 0 / 0.491 GB, free: 8.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002374/0.346, allocations: 1.167 MB / 0.4921 GB, free: 7.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.3461, allocations: 63.19 kB / 0.4922 GB, free: 7.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/0.3508, allocations: 3.047 MB / 0.4951 GB, free: 3.996 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.351, allocations: 37.7 kB / 0.4952 GB, free: 3.953 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.3524, allocations: 1.576 MB / 0.4967 GB, free: 2.367 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.3526, allocations: 169.7 kB / 0.4969 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.3527, allocations: 15.94 kB / 0.4969 GB, free: 2.184 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3528, allocations: 338 kB / 0.4972 GB, free: 1.848 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006249/0.3534, allocations: 265.8 kB / 0.4975 GB, free: 1.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008256/0.3543, allocations: 0.6254 MB / 0.4981 GB, free: 0.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1594/0.5137, allocations: 0.9252 MB / 0.499 GB, free: 95.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.636e-05/0.5138, allocations: 3.719 kB / 0.499 GB, free: 95.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003039/0.5168, allocations: 1.29 MB / 0.5002 GB, free: 95.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/0.5169, allocations: 13.25 kB / 0.5003 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/0.517, allocations: 81.78 kB / 0.5003 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.517, allocations: 16.47 kB / 0.5003 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.5177, allocations: 211.1 kB / 0.5005 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.398e-05/0.5178, allocations: 23.95 kB / 0.5006 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.519, allocations: 121.1 kB / 0.5007 GB, free: 95.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001314/0.5191, allocations: 68.38 kB / 0.5007 GB, free: 95.7 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.0007843/0.5199, allocations: 453.4 kB / 0.5012 GB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004397/0.5203, allocations: 398.4 kB / 0.5016 GB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.5233, allocations: 1.257 MB / 0.5028 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.5234, allocations: 5.469 kB / 0.5028 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.5234, allocations: 0 / 0.5028 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.186e-06/0.5234, allocations: 2.703 kB / 0.5028 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.5266, allocations: 2.186 MB / 0.5049 GB, free: 94.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.486e-05/0.5267, allocations: 69.81 kB / 0.505 GB, free: 94.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004525/0.5272, allocations: 108.2 kB / 0.5051 GB, free: 94.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.5272, allocations: 6.953 kB / 0.5051 GB, free: 94.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.341e-05/0.5272, allocations: 35.28 kB / 0.5051 GB, free: 94.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.5272, allocations: 7.875 kB / 0.5052 GB, free: 94.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5273, allocations: 0 / 0.5052 GB, free: 94.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.5295, allocations: 1.371 MB / 0.5065 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007523/0.5303, allocations: 489.7 kB / 0.507 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.5306, allocations: 11.56 kB / 0.507 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006703/0.5313, allocations: 43.16 kB / 0.507 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.5314, allocations: 63.31 kB / 0.5071 GB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.882e-05/0.5315, allocations: 39.31 kB / 0.5071 GB, free: 93.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002955/0.5345, allocations: 1.975 MB / 0.509 GB, free: 92.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5345, allocations: 0 / 0.509 GB, free: 92.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001337/0.5358, allocations: 0.598 MB / 0.5096 GB, free: 92.37 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.0009503/0.5368, allocations: 0.7675 MB / 0.5104 GB, free: 92.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.5383, allocations: 0.8527 MB / 0.5112 GB, free: 91.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.5383, allocations: 128 / 0.5112 GB, free: 91.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006407/0.5389, allocations: 477.3 kB / 0.5117 GB, free: 91.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002502/0.5415, allocations: 0.6055 MB / 0.5122 GB, free: 91.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005058/0.5465, allocations: 5.176 MB / 0.5173 GB, free: 85.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007372/0.5473, allocations: 1.71 MB / 0.519 GB, free: 84.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002569/0.5476, allocations: 155.4 kB / 0.5191 GB, free: 84.02 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5476, allocations: 0 / 0.5191 GB, free: 84.02 MB / 378.7 MB Notification: Performance of Templates: time 0.04239/0.59, allocations: 38.07 MB / 0.5563 GB, free: 46.03 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches