Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001288/0.001288, allocations: 175.3 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007549/0.000755, allocations: 95.44 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.000301, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1888/0.1892, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01398/0.2032, allocations: 22.5 MB / 397.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.2215, allocations: 19.51 MB / 417.2 MB, free: 6.574 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004626/0.2261, allocations: 55.69 kB / 417.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003723/0.2299, allocations: 1.243 MB / 418.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009041/0.2389, allocations: 2.588 MB / 421.1 MB, free: 2.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003959/0.2429, allocations: 1.198 MB / 422.3 MB, free: 1.461 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01804/0.261, allocations: 11.56 MB / 433.8 MB, free: 5.867 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.2627, allocations: 0.8297 MB / 434.7 MB, free: 5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.2652, allocations: 1.601 MB / 436.3 MB, free: 3.391 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.2672, allocations: 1.871 MB / 438.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003092/0.2676, allocations: 79.94 kB / 438.2 MB, free: 1.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.2711, allocations: 1.12 MB / 439.3 MB, free: 316 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005/0.2716, allocations: 0.5079 MB / 439.8 MB, free: 15.79 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002577/0.2742, allocations: 2.444 MB / 442.3 MB, free: 13.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004574/0.2788, allocations: 4.805 MB / 447.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2788, allocations: 0 / 447.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.2788, allocations: 3.984 kB / 447.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001491/0.279, allocations: 0 / 447.1 MB, free: 8.504 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007973/0.287, allocations: 5.819 MB / 452.9 MB, free: 2.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.287, allocations: 15.97 kB / 452.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002695/0.2873, allocations: 157.2 kB / 453.1 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008139/0.2881, allocations: 0.7448 MB / 453.8 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006586/0.2947, allocations: 4.668 MB / 458.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.802e-05/0.2948, allocations: 66 kB / 458.6 MB, free: 12.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/0.295, allocations: 107.7 kB / 458.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.2972, allocations: 1.317 MB / 460 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2973, allocations: 0 / 460 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.2974, allocations: 36 kB / 460 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.2974, allocations: 39.97 kB / 460 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002404/0.2998, allocations: 1.531 MB / 461.6 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009672/0.3095, allocations: 5.67 MB / 467.2 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.3113, allocations: 1.028 MB / 468.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.3129, allocations: 1.239 MB / 469.5 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1942/0.5071, allocations: 59.96 MB / 0.5171 GB, free: 114.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009746/0.5081, allocations: 0.5789 MB / 0.5176 GB, free: 114 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 3.356e-06/0.5081, allocations: 0 / 0.5176 GB, free: 114 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.003417/0.5115, allocations: 1.948 MB / 0.5195 GB, free: 113.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.5116, allocations: 66.52 kB / 0.5196 GB, free: 113.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005254/0.5169, allocations: 5.563 MB / 0.525 GB, free: 110.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.517, allocations: 37.67 kB / 0.5251 GB, free: 110.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.5186, allocations: 2.933 MB / 0.5279 GB, free: 107.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.5188, allocations: 296.1 kB / 0.5282 GB, free: 107.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.167e-05/0.5189, allocations: 28 kB / 0.5282 GB, free: 107.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.212e-05/0.519, allocations: 365.9 kB / 0.5286 GB, free: 106.9 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000704/0.5197, allocations: 425.4 kB / 0.529 GB, free: 106.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008796/0.5206, allocations: 1.099 MB / 0.5301 GB, free: 105.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.5223, allocations: 1.656 MB / 0.5317 GB, free: 103.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.5223, allocations: 8 kB / 0.5317 GB, free: 103.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002938/0.5252, allocations: 2.246 MB / 0.5339 GB, free: 101 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.5253, allocations: 16 kB / 0.5339 GB, free: 101 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/0.5254, allocations: 163.9 kB / 0.5341 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.249e-05/0.5255, allocations: 36 kB / 0.5341 GB, free: 100.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009828/0.5264, allocations: 370.1 kB / 0.5344 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.881e-05/0.5265, allocations: 56.84 kB / 0.5345 GB, free: 100.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.5281, allocations: 198.1 kB / 0.5347 GB, free: 100.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.5282, allocations: 124 kB / 0.5348 GB, free: 100 MB / 394.7 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 ($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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001156/0.5294, allocations: 0.7151 MB / 0.5355 GB, free: 99.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005353/0.5299, allocations: 0.7218 MB / 0.5362 GB, free: 98.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004322/0.5343, allocations: 2.209 MB / 0.5384 GB, free: 96.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.5343, allocations: 8 kB / 0.5384 GB, free: 96.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5343, allocations: 4 kB / 0.5384 GB, free: 96.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.5343, allocations: 3.984 kB / 0.5384 GB, free: 96.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004254/0.5386, allocations: 3.663 MB / 0.542 GB, free: 92.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001266/0.5387, allocations: 136.9 kB / 0.5421 GB, free: 92.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006758/0.5394, allocations: 163.9 kB / 0.5423 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.5394, allocations: 4 kB / 0.5423 GB, free: 92.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.597e-05/0.5395, allocations: 59.98 kB / 0.5423 GB, free: 92.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.5395, allocations: 4 kB / 0.5423 GB, free: 92.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5395, allocations: 0 / 0.5423 GB, free: 92.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003209/0.5427, allocations: 2.23 MB / 0.5445 GB, free: 90.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/0.5443, allocations: 0.8123 MB / 0.5453 GB, free: 89.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005047/0.5448, allocations: 19.98 kB / 0.5453 GB, free: 89.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.5459, allocations: 47.97 kB / 0.5454 GB, free: 89.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.5462, allocations: 96.47 kB / 0.5454 GB, free: 89.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5463, allocations: 68 kB / 0.5455 GB, free: 89.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003686/0.55, allocations: 3.567 MB / 0.549 GB, free: 85.51 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.55, allocations: 0 / 0.549 GB, free: 85.51 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001895/0.5519, allocations: 1.076 MB / 0.55 GB, free: 84.47 MB / 394.7 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 (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.004262/0.5562, allocations: 3.892 MB / 0.5538 GB, free: 80.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001924/0.5581, allocations: 1.456 MB / 0.5553 GB, free: 79.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5581, allocations: 0 / 0.5553 GB, free: 79.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008452/0.559, allocations: 0.7941 MB / 0.556 GB, free: 78.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.5624, allocations: 0.9295 MB / 0.5569 GB, free: 77.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07355/0.636, allocations: 43.59 MB / 0.5995 GB, free: 29.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.6377, allocations: 2.604 MB / 0.6021 GB, free: 27.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001966/0.6397, allocations: 2.421 MB / 0.6044 GB, free: 24.76 MB / 394.7 MB Notification: Performance of SimCode: time 8.22e-07/0.6397, allocations: 0 / 0.6044 GB, free: 24.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.451/8.091, allocations: 84.97 MB / 0.6874 GB, free: 131.7 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches