Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008376/0.0008376, allocations: 91.3 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009548/0.0009549, allocations: 202 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.178/1.178, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001864/0.0001866, allocations: 8 kB / 307.8 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07599/0.07619, allocations: 51.51 MB / 359.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1538/0.23, allocations: 25.66 MB / 385 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0236/0.2537, allocations: 22.3 MB / 407.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002855/0.2566, allocations: 55.06 kB / 407.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003444/0.26, allocations: 1.536 MB / 408.9 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009962/0.27, allocations: 2.704 MB / 411.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004991/0.275, allocations: 1.363 MB / 413 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01592/0.2909, allocations: 12.58 MB / 425.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.2922, allocations: 0.8179 MB / 426.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002522/0.2947, allocations: 1.974 MB / 428.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002481/0.2972, allocations: 2.033 MB / 430.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003063/0.2975, allocations: 80 kB / 430.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003931/0.3015, allocations: 1.494 MB / 431.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004306/0.3019, allocations: 0.5385 MB / 432.5 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002012/0.3039, allocations: 2.59 MB / 435.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005011/0.309, allocations: 6.343 MB / 441.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.309, allocations: 4 kB / 441.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.309, allocations: 4 kB / 441.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.837e-05/0.309, allocations: 3.938 kB / 441.4 MB, free: 9.152 MB / 350.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.006748/0.3158, allocations: 5.784 MB / 447.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3158, allocations: 8.031 kB / 447.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.316, allocations: 161.2 kB / 447.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005925/0.3166, allocations: 0.7371 MB / 448.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005759/0.3224, allocations: 4.64 MB / 452.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/0.3225, allocations: 66 kB / 452.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.3227, allocations: 99.84 kB / 452.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.3247, allocations: 1.321 MB / 454.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3247, allocations: 0 / 454.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.3248, allocations: 36 kB / 454.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-05/0.3249, allocations: 39.97 kB / 454.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.3272, allocations: 1.527 MB / 455.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00791/0.3351, allocations: 5.657 MB / 461.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.3367, allocations: 1.028 MB / 462.5 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/0.3383, allocations: 1.249 MB / 463.8 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04903/0.3873, allocations: 61.11 MB / 0.5126 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009443/0.3883, allocations: 0.5794 MB / 0.5131 GB, free: 12.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.665e-06/0.3883, allocations: 0 / 0.5131 GB, free: 12.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003181/0.3915, allocations: 1.938 MB / 0.515 GB, free: 10.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.3915, allocations: 67.95 kB / 0.5151 GB, free: 10.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006629/0.3982, allocations: 5.586 MB / 0.5206 GB, free: 4.723 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.91e-05/0.3983, allocations: 41.7 kB / 0.5206 GB, free: 4.676 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00217/0.4004, allocations: 2.939 MB / 0.5235 GB, free: 1.723 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.4007, allocations: 307.7 kB / 0.5238 GB, free: 1.418 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.4009, allocations: 125.6 kB / 0.5239 GB, free: 1.289 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.401, allocations: 301.1 kB / 0.5242 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008661/0.4018, allocations: 427.8 kB / 0.5246 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1392/0.541, allocations: 1.106 MB / 0.5256 GB, free: 147 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/0.5433, allocations: 1.654 MB / 0.5273 GB, free: 146.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.143e-05/0.5433, allocations: 6.906 kB / 0.5273 GB, free: 146.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003481/0.5468, allocations: 2.244 MB / 0.5295 GB, free: 145.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.5468, allocations: 16.2 kB / 0.5295 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/0.547, allocations: 167.1 kB / 0.5296 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.356e-05/0.5471, allocations: 33.88 kB / 0.5297 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.5482, allocations: 375.2 kB / 0.53 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-05/0.5482, allocations: 44.34 kB / 0.5301 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.5499, allocations: 194.1 kB / 0.5303 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/0.5501, allocations: 124.3 kB / 0.5304 GB, free: 145.9 MB / 446.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.001296/0.5514, allocations: 0.72 MB / 0.5311 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007299/0.5521, allocations: 0.7162 MB / 0.5318 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.5567, allocations: 2.197 MB / 0.5339 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5567, allocations: 11.7 kB / 0.5339 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.5567, allocations: 0.7969 kB / 0.5339 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5568, allocations: 3.594 kB / 0.5339 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005157/0.5619, allocations: 3.645 MB / 0.5375 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001478/0.5621, allocations: 140.2 kB / 0.5376 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.5628, allocations: 165.9 kB / 0.5378 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.5628, allocations: 2.969 kB / 0.5378 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/0.5629, allocations: 61.44 kB / 0.5378 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.5629, allocations: 7.094 kB / 0.5379 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.5629, allocations: 1.281 kB / 0.5379 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/0.5659, allocations: 2.209 MB / 0.54 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.567, allocations: 0.8211 MB / 0.5408 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005299/0.5675, allocations: 17.73 kB / 0.5408 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.5686, allocations: 47.11 kB / 0.5409 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.5688, allocations: 106.7 kB / 0.541 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.5689, allocations: 65.78 kB / 0.541 GB, free: 143 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004578/0.5735, allocations: 3.616 MB / 0.5446 GB, free: 141.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5735, allocations: 0 / 0.5446 GB, free: 141.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001639/0.5752, allocations: 1.076 MB / 0.5456 GB, free: 141.7 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.004098/0.5793, allocations: 3.855 MB / 0.5494 GB, free: 140.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.5811, allocations: 1.477 MB / 0.5508 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5811, allocations: 0 / 0.5508 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008556/0.582, allocations: 0.792 MB / 0.5516 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/0.5863, allocations: 1.122 MB / 0.5527 GB, free: 138.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06606/0.6524, allocations: 49.39 MB / 0.6009 GB, free: 85.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.6535, allocations: 2.592 MB / 0.6035 GB, free: 83.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002072/0.6556, allocations: 0.6924 MB / 0.6041 GB, free: 82.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/0.6571, allocations: 2.389 MB / 0.6065 GB, free: 80.26 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6571, allocations: 0 / 0.6065 GB, free: 80.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5734/1.23, allocations: 107 MB / 0.711 GB, free: 148.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/1.231, allocations: 197.7 kB / 0.7112 GB, free: 148.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.691/5.922, allocations: 0 / 0.7112 GB, free: 148.5 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches