Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000913/0.0009129, allocations: 108.5 kB / 17.16 MB, free: 6.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009201/0.0009201, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 56.16 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.09878, allocations: 46.63 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02001/0.1188, allocations: 25.04 MB / 351.7 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02703/0.1459, allocations: 21.5 MB / 373.2 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005834/0.1518, allocations: 59.62 kB / 373.3 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005131/0.157, allocations: 1.465 MB / 374.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.1688, allocations: 2.671 MB / 377.4 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005482/0.1743, allocations: 1.312 MB / 378.7 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1936/0.3679, allocations: 12.14 MB / 390.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001853/0.3698, allocations: 0.8269 MB / 391.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004062/0.3739, allocations: 1.79 MB / 393.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.3775, allocations: 2.024 MB / 395.5 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006143/0.3781, allocations: 92.41 kB / 395.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005177/0.3833, allocations: 1.167 MB / 396.8 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007703/0.3841, allocations: 0.5551 MB / 397.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003642/0.3877, allocations: 2.608 MB / 399.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007822/0.3956, allocations: 6.498 MB / 406.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3956, allocations: 0 / 406.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3956, allocations: 0 / 406.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001909/0.3958, allocations: 0 / 406.4 MB, free: 9.098 MB / 318.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.009272/0.4051, allocations: 6.739 MB / 413.2 MB, free: 3.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.4052, allocations: 8.031 kB / 413.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/0.4053, allocations: 159.6 kB / 413.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007726/0.4061, allocations: 0.7481 MB / 414.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006096/0.4122, allocations: 4.667 MB / 418.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/0.4123, allocations: 69.98 kB / 418.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.4125, allocations: 99.91 kB / 418.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.4147, allocations: 1.306 MB / 420.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.4147, allocations: 0 / 420.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.4148, allocations: 39.94 kB / 420.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.452e-05/0.4149, allocations: 41.66 kB / 420.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002456/0.4174, allocations: 1.484 MB / 421.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009962/0.4273, allocations: 5.646 MB / 427.4 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.429, allocations: 0.9964 MB / 428.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.4306, allocations: 1.223 MB / 429.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05422/0.4848, allocations: 59.94 MB / 489.6 MB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/0.4858, allocations: 0.5637 MB / 490.1 MB, free: 14.57 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 2.364e-06/0.4858, allocations: 0 / 490.1 MB, free: 14.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003182/0.489, allocations: 1.877 MB / 492 MB, free: 12.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.4891, allocations: 63.95 kB / 492.1 MB, free: 12.61 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007254/0.4964, allocations: 5.632 MB / 497.7 MB, free: 7.012 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.814e-05/0.4965, allocations: 37.7 kB / 497.8 MB, free: 6.969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002365/0.4988, allocations: 2.939 MB / 0.489 GB, free: 4.023 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.4991, allocations: 291 kB / 0.4892 GB, free: 3.742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/0.4996, allocations: 426.5 kB / 0.4896 GB, free: 3.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.4997, allocations: 305.1 kB / 0.4899 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007847/0.5005, allocations: 399.8 kB / 0.4903 GB, free: 2.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001195/0.5017, allocations: 1.096 MB / 0.4914 GB, free: 1.211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002115/0.5039, allocations: 1.611 MB / 0.493 GB, free: 15.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.5039, allocations: 8 kB / 0.493 GB, free: 15.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003483/0.5074, allocations: 2.213 MB / 0.4951 GB, free: 13.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.5074, allocations: 12 kB / 0.4951 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/0.5076, allocations: 164 kB / 0.4953 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.068e-05/0.5077, allocations: 39.98 kB / 0.4953 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.5088, allocations: 364 kB / 0.4957 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.055e-05/0.5088, allocations: 47.8 kB / 0.4957 GB, free: 12.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.5106, allocations: 182.2 kB / 0.4959 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.5108, allocations: 132 kB / 0.496 GB, free: 12.13 MB / 430.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.0015/0.5123, allocations: 0.7148 MB / 0.4967 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006908/0.513, allocations: 0.7217 MB / 0.4974 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004658/0.5177, allocations: 2.162 MB / 0.4995 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.5177, allocations: 8 kB / 0.4995 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.5177, allocations: 0 / 0.4995 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5177, allocations: 7.984 kB / 0.4996 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005319/0.5231, allocations: 3.627 MB / 0.5031 GB, free: 4.828 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001776/0.5233, allocations: 144 kB / 0.5032 GB, free: 4.688 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007039/0.524, allocations: 151.8 kB / 0.5034 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.524, allocations: 4 kB / 0.5034 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.83e-05/0.5241, allocations: 56 kB / 0.5034 GB, free: 4.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.5241, allocations: 4 kB / 0.5034 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.5241, allocations: 10.08 kB / 0.5035 GB, free: 4.469 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003152/0.5273, allocations: 2.157 MB / 0.5056 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001463/0.5287, allocations: 0.824 MB / 0.5064 GB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005193/0.5293, allocations: 16 kB / 0.5064 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.5303, allocations: 35.95 kB / 0.5064 GB, free: 1.375 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002231/0.5305, allocations: 100.5 kB / 0.5065 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/0.5307, allocations: 71.94 kB / 0.5066 GB, free: 1.207 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004928/0.5356, allocations: 3.637 MB / 0.5101 GB, free: 13.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5356, allocations: 0 / 0.5101 GB, free: 13.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002594/0.5382, allocations: 1.081 MB / 0.5112 GB, free: 12.52 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.005108/0.5434, allocations: 3.83 MB / 0.5149 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.5457, allocations: 1.427 MB / 0.5163 GB, free: 7.395 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5457, allocations: 0 / 0.5163 GB, free: 7.395 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.5468, allocations: 0.7756 MB / 0.5171 GB, free: 6.574 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/0.5503, allocations: 0.9216 MB / 0.518 GB, free: 5.648 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2254/0.7758, allocations: 49.62 MB / 0.5664 GB, free: 164.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.7771, allocations: 2.603 MB / 0.569 GB, free: 163.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001993/0.7791, allocations: 0.6906 MB / 0.5697 GB, free: 162.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/0.7806, allocations: 2.404 MB / 0.572 GB, free: 160.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.7806, allocations: 2.906 kB / 0.572 GB, free: 160.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.573/3.353, allocations: 108 MB / 0.6775 GB, free: 56.19 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/3.354, allocations: 201.8 kB / 0.6776 GB, free: 55.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.927/10.28, allocations: 3.609 kB / 0.6776 GB, free: 55.93 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches