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.001081/0.001081, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.28 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.08236, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1627/0.2451, allocations: 26.72 MB / 384.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02563/0.2707, allocations: 22.37 MB / 406.7 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004157/0.2749, allocations: 56.25 kB / 406.7 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004481/0.2795, allocations: 1.78 MB / 408.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.2901, allocations: 3.212 MB / 411.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005179/0.2953, allocations: 1.63 MB / 413.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.313, allocations: 12.77 MB / 426.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.3145, allocations: 0.8651 MB / 427 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002948/0.3174, allocations: 2.033 MB / 429 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.3206, allocations: 2.096 MB / 431.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006628/0.3213, allocations: 140 kB / 431.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005352/0.3266, allocations: 1.545 MB / 432.8 MB, free: 96 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007308/0.3274, allocations: 0.5973 MB / 433.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.3302, allocations: 2.639 MB / 436 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006876/0.3371, allocations: 6.575 MB / 442.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3372, allocations: 0 / 442.6 MB, free: 6.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3372, allocations: 4 kB / 442.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001066/0.3373, allocations: 0 / 442.6 MB, free: 6.23 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.008778/0.3461, allocations: 6.694 MB / 449.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.3461, allocations: 12.03 kB / 449.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.3463, allocations: 157.2 kB / 449.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007399/0.3471, allocations: 0.741 MB / 450.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006322/0.3534, allocations: 4.629 MB / 454.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.637e-05/0.3535, allocations: 73.98 kB / 454.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.3537, allocations: 99.84 kB / 455 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.3558, allocations: 1.296 MB / 456.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.3558, allocations: 4 kB / 456.3 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.3559, allocations: 36 kB / 456.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.29e-05/0.356, allocations: 43.97 kB / 456.4 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002483/0.3585, allocations: 1.476 MB / 457.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008796/0.3673, allocations: 5.645 MB / 463.5 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.369, allocations: 0.9876 MB / 464.5 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.3707, allocations: 1.216 MB / 465.7 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0539/0.4246, allocations: 61.07 MB / 0.5144 GB, free: 9.254 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001046/0.4257, allocations: 0.556 MB / 0.515 GB, free: 8.684 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.106e-06/0.4257, allocations: 0 / 0.515 GB, free: 8.684 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003413/0.4291, allocations: 1.879 MB / 0.5168 GB, free: 6.793 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.4292, allocations: 63.97 kB / 0.5169 GB, free: 6.719 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00669/0.4359, allocations: 5.586 MB / 0.5223 GB, free: 1.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.436, allocations: 37.7 kB / 0.5224 GB, free: 1.117 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1462/0.5823, allocations: 2.938 MB / 0.5252 GB, free: 150.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003503/0.5826, allocations: 296.3 kB / 0.5255 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005341/0.5832, allocations: 422.4 kB / 0.5259 GB, free: 150.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.125e-05/0.5832, allocations: 302.7 kB / 0.5262 GB, free: 150 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000886/0.5841, allocations: 402.3 kB / 0.5266 GB, free: 149.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.5852, allocations: 1.093 MB / 0.5277 GB, free: 148.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002003/0.5872, allocations: 1.609 MB / 0.5292 GB, free: 147.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.234e-05/0.5872, allocations: 8.125 kB / 0.5292 GB, free: 147.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003424/0.5907, allocations: 2.208 MB / 0.5314 GB, free: 146.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.5907, allocations: 15.19 kB / 0.5314 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002016/0.5909, allocations: 165.6 kB / 0.5316 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.938e-05/0.591, allocations: 34.09 kB / 0.5316 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.5921, allocations: 360.5 kB / 0.5319 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.001e-05/0.5922, allocations: 50.55 kB / 0.532 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.5938, allocations: 190.3 kB / 0.5322 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.594, allocations: 122.9 kB / 0.5323 GB, free: 146.6 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.001115/0.5951, allocations: 0.7192 MB / 0.533 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005308/0.5956, allocations: 0.7144 MB / 0.5337 GB, free: 145.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004874/0.6005, allocations: 2.149 MB / 0.5358 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.6005, allocations: 7.406 kB / 0.5358 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.6005, allocations: 6.219 kB / 0.5358 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.6006, allocations: 4.172 kB / 0.5358 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005213/0.6058, allocations: 3.597 MB / 0.5393 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001861/0.606, allocations: 139.2 kB / 0.5394 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007845/0.6068, allocations: 158.7 kB / 0.5396 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.6068, allocations: 8.188 kB / 0.5396 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.918e-05/0.6069, allocations: 60.7 kB / 0.5397 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.6069, allocations: 3.219 kB / 0.5397 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.6069, allocations: 3.797 kB / 0.5397 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003236/0.6101, allocations: 2.148 MB / 0.5418 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.6114, allocations: 0.8261 MB / 0.5426 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005496/0.6119, allocations: 14.39 kB / 0.5426 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001123/0.613, allocations: 33.02 kB / 0.5426 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.6133, allocations: 97.7 kB / 0.5427 GB, free: 141.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.6134, allocations: 73.73 kB / 0.5428 GB, free: 141.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004592/0.618, allocations: 3.61 MB / 0.5463 GB, free: 140.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.618, allocations: 0 / 0.5463 GB, free: 140.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001964/0.62, allocations: 1.079 MB / 0.5474 GB, free: 140.6 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.004535/0.6245, allocations: 3.801 MB / 0.5511 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00251/0.6271, allocations: 1.461 MB / 0.5525 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6271, allocations: 0 / 0.5525 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009691/0.628, allocations: 0.7687 MB / 0.5533 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004311/0.6324, allocations: 1.199 MB / 0.5544 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03613/0.6685, allocations: 47.82 MB / 0.6011 GB, free: 85.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/0.6698, allocations: 2.588 MB / 0.6037 GB, free: 82.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002352/0.6721, allocations: 0.6885 MB / 0.6043 GB, free: 81.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/0.6738, allocations: 2.393 MB / 0.6067 GB, free: 79.5 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.6738, allocations: 0 / 0.6067 GB, free: 79.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2821/0.9559, allocations: 109.8 MB / 0.7139 GB, free: 123 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11.35, allocations: 8.312 kB / 0.7139 GB, free: 123 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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