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.001067/0.001067, allocations: 106.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001085, allocations: 62.58 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07936/0.08046, allocations: 50.52 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1644/0.2449, allocations: 26.42 MB / 383.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02439/0.2694, allocations: 22.61 MB / 405.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004287/0.2737, allocations: 61.16 kB / 406 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005235/0.279, allocations: 1.501 MB / 407.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.2902, allocations: 2.716 MB / 410.2 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004993/0.2952, allocations: 1.357 MB / 411.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.3135, allocations: 12.57 MB / 424.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.3149, allocations: 0.8258 MB / 424.9 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002927/0.3178, allocations: 1.994 MB / 426.9 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002014/0.3198, allocations: 2.064 MB / 429 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003332/0.3202, allocations: 92 kB / 429.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004353/0.3245, allocations: 1.506 MB / 430.6 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005805/0.3251, allocations: 0.5618 MB / 431.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002447/0.3276, allocations: 2.577 MB / 433.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006442/0.334, allocations: 6.458 MB / 440.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3341, allocations: 0 / 440.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.3341, allocations: 0 / 440.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001171/0.3342, allocations: 0 / 440.2 MB, free: 8.41 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.00886/0.3431, allocations: 6.708 MB / 446.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3431, allocations: 11.97 kB / 446.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001866/0.3433, allocations: 161.2 kB / 447.1 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000715/0.344, allocations: 0.7371 MB / 447.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005928/0.35, allocations: 4.632 MB / 452.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.853e-05/0.35, allocations: 69.98 kB / 452.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001999/0.3502, allocations: 99.84 kB / 452.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.3525, allocations: 1.301 MB / 453.9 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.3525, allocations: 7.984 kB / 453.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.3526, allocations: 32 kB / 453.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.511e-05/0.3527, allocations: 39.97 kB / 454 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002436/0.3551, allocations: 1.476 MB / 455.5 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009127/0.3642, allocations: 5.634 MB / 461.1 MB, free: 3.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.3659, allocations: 0.9928 MB / 462.1 MB, free: 2.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.3674, allocations: 1.223 MB / 463.3 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05295/0.4204, allocations: 61.07 MB / 0.5121 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009948/0.4214, allocations: 0.5443 MB / 0.5126 GB, free: 10.86 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.036e-06/0.4214, allocations: 0 / 0.5126 GB, free: 10.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003272/0.4247, allocations: 1.887 MB / 0.5145 GB, free: 8.961 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.4248, allocations: 59.97 kB / 0.5145 GB, free: 8.891 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006348/0.4311, allocations: 5.594 MB / 0.52 GB, free: 3.324 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.4312, allocations: 37.7 kB / 0.52 GB, free: 3.281 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002301/0.4336, allocations: 2.943 MB / 0.5229 GB, free: 332 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.4338, allocations: 299.8 kB / 0.5232 GB, free: 28 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1462/0.58, allocations: 414.5 kB / 0.5236 GB, free: 149.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.651e-05/0.5801, allocations: 310.1 kB / 0.5239 GB, free: 149.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008688/0.5809, allocations: 403.6 kB / 0.5243 GB, free: 149.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001003/0.5819, allocations: 1.086 MB / 0.5253 GB, free: 148.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/0.5838, allocations: 1.616 MB / 0.5269 GB, free: 147.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.5839, allocations: 6.375 kB / 0.5269 GB, free: 147.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00344/0.5873, allocations: 2.208 MB / 0.5291 GB, free: 147.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.5873, allocations: 13.94 kB / 0.5291 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002199/0.5876, allocations: 165.6 kB / 0.5292 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.289e-05/0.5876, allocations: 33.06 kB / 0.5293 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.5887, allocations: 361.5 kB / 0.5296 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.664e-05/0.5888, allocations: 48.23 kB / 0.5296 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.5903, allocations: 184.5 kB / 0.5298 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.5905, allocations: 126.5 kB / 0.5299 GB, free: 147.4 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.001202/0.5917, allocations: 0.7195 MB / 0.5306 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005569/0.5923, allocations: 0.7155 MB / 0.5313 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.5968, allocations: 2.159 MB / 0.5335 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.5969, allocations: 9.734 kB / 0.5335 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5969, allocations: 3.938 kB / 0.5335 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.5969, allocations: 3.609 kB / 0.5335 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.6019, allocations: 3.596 MB / 0.537 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000175/0.6021, allocations: 138.3 kB / 0.5371 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007331/0.6029, allocations: 151.9 kB / 0.5373 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.6029, allocations: 7.219 kB / 0.5373 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.175e-05/0.603, allocations: 65.05 kB / 0.5373 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.603, allocations: 7.406 kB / 0.5373 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.603, allocations: 1.344 kB / 0.5373 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003068/0.6061, allocations: 2.147 MB / 0.5394 GB, free: 144.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.6072, allocations: 0.8267 MB / 0.5402 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005417/0.6078, allocations: 12.97 kB / 0.5402 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.6089, allocations: 33.2 kB / 0.5403 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/0.6091, allocations: 99.48 kB / 0.5404 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.6093, allocations: 69.45 kB / 0.5404 GB, free: 143.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004805/0.6141, allocations: 3.613 MB / 0.544 GB, free: 142.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6141, allocations: 5.75 kB / 0.544 GB, free: 142.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002093/0.6162, allocations: 1.077 MB / 0.545 GB, free: 142.3 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.004322/0.6205, allocations: 3.81 MB / 0.5487 GB, free: 140.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.6225, allocations: 1.429 MB / 0.5501 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6226, allocations: 0 / 0.5501 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009047/0.6235, allocations: 0.7703 MB / 0.5509 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003897/0.6274, allocations: 1.117 MB / 0.552 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07317/0.7006, allocations: 49.17 MB / 0.6 GB, free: 86.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.7018, allocations: 2.588 MB / 0.6025 GB, free: 83.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002402/0.7042, allocations: 0.6885 MB / 0.6032 GB, free: 82.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.7058, allocations: 2.393 MB / 0.6055 GB, free: 80.44 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7058, allocations: 0 / 0.6055 GB, free: 80.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2746/0.9804, allocations: 107.5 MB / 0.7105 GB, free: 132.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/0.9806, allocations: 202.4 kB / 0.7107 GB, free: 132.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.245/6.225, allocations: 4.234 kB / 0.7107 GB, free: 132.6 MB / 446.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