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.001201/0.001201, allocations: 96.98 kB / 16.95 MB, free: 6.082 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.001584/0.001584, allocations: 178.4 kB / 17.84 MB, free: 5.711 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.816/1.816, allocations: 205.4 MB / 224 MB, free: 13.02 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.0004588/0.0004588, allocations: 12 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 47.59 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02115/0.1267, allocations: 22.48 MB / 350.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02872/0.1555, allocations: 19.5 MB / 370.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007778/0.1633, allocations: 59.62 kB / 370.5 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006012/0.1694, allocations: 1.239 MB / 371.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01427/0.1837, allocations: 2.588 MB / 374.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006293/0.1901, allocations: 1.198 MB / 375.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.251/0.4411, allocations: 11.56 MB / 387.1 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002268/0.4434, allocations: 0.7905 MB / 387.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004937/0.4484, allocations: 1.605 MB / 389.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005339/0.4538, allocations: 1.867 MB / 391.3 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001337/0.4551, allocations: 76.78 kB / 391.4 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007265/0.4624, allocations: 1.11 MB / 392.5 MB, free: 14.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.4637, allocations: 0.5031 MB / 393 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003687/0.4674, allocations: 1.178 MB / 394.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00755/0.475, allocations: 4.817 MB / 399 MB, free: 13.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.475, allocations: 0 / 399 MB, free: 13.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.475, allocations: 0 / 399 MB, free: 13.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002524/0.4753, allocations: 0 / 399 MB, free: 13.15 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.01043/0.4857, allocations: 5.902 MB / 404.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.4858, allocations: 9.062 kB / 404.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004938/0.4863, allocations: 157.1 kB / 405.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.4877, allocations: 0.7439 MB / 405.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007491/0.4951, allocations: 4.343 MB / 410.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.601e-05/0.4952, allocations: 66.94 kB / 410.2 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.4954, allocations: 98.05 kB / 410.3 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002157/0.4976, allocations: 1.32 MB / 411.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.4977, allocations: 0 / 411.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.4978, allocations: 41.62 kB / 411.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.54e-05/0.4978, allocations: 41.02 kB / 411.7 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.4999, allocations: 1.526 MB / 413.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009345/0.5093, allocations: 5.669 MB / 418.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.5108, allocations: 1.036 MB / 420 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.5122, allocations: 1.236 MB / 421.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05833/0.5705, allocations: 59.97 MB / 481.2 MB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.5716, allocations: 0.5836 MB / 481.8 MB, free: 1.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 4.028e-06/0.5717, allocations: 0 / 481.8 MB, free: 1.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.003906/0.5756, allocations: 1.938 MB / 483.7 MB, free: 15.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.5757, allocations: 66.61 kB / 483.8 MB, free: 15.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009843/0.5855, allocations: 5.561 MB / 489.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002446/0.5858, allocations: 44.11 kB / 489.4 MB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002565/0.5884, allocations: 2.935 MB / 492.3 MB, free: 7.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004638/0.5888, allocations: 293.2 kB / 492.6 MB, free: 7.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.827e-05/0.5889, allocations: 28 kB / 492.6 MB, free: 7.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.5891, allocations: 365.9 kB / 493 MB, free: 7.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008055/0.5899, allocations: 423.8 kB / 493.4 MB, free: 6.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.5911, allocations: 1.11 MB / 494.5 MB, free: 5.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009662/0.5921, allocations: 0.5621 MB / 495.1 MB, free: 4.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.5921, allocations: 8 kB / 495.1 MB, free: 4.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003881/0.596, allocations: 2.245 MB / 497.3 MB, free: 2.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/0.596, allocations: 16.19 kB / 497.3 MB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/0.5962, allocations: 168 kB / 497.5 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-05/0.5963, allocations: 40 kB / 497.5 MB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.5973, allocations: 369.5 kB / 497.9 MB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-05/0.5974, allocations: 51.8 kB / 498 MB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.5996, allocations: 202.1 kB / 498.1 MB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000202/0.5998, allocations: 120 kB / 498.3 MB, free: 1.547 MB / 398.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 ($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.001671/0.6015, allocations: 0.7121 MB / 499 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/0.6028, allocations: 0.7218 MB / 499.7 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005662/0.6085, allocations: 2.21 MB / 0.4901 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.6085, allocations: 8 kB / 0.4902 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.6085, allocations: 0 / 0.4902 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.6085, allocations: 11.98 kB / 0.4902 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008241/0.6168, allocations: 3.652 MB / 0.4937 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001869/0.617, allocations: 140 kB / 0.4939 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000703/0.6177, allocations: 163.9 kB / 0.494 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.6177, allocations: 4 kB / 0.494 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.6179, allocations: 63.94 kB / 0.4941 GB, free: 9.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.6179, allocations: 5.438 kB / 0.4941 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6179, allocations: 1.531 kB / 0.4941 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004212/0.6221, allocations: 2.224 MB / 0.4963 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/0.6243, allocations: 0.8161 MB / 0.4971 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001463/0.6258, allocations: 15.98 kB / 0.4971 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002096/0.6279, allocations: 51.92 kB / 0.4971 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.6282, allocations: 100.5 kB / 0.4972 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.6283, allocations: 68 kB / 0.4973 GB, free: 6.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.007308/0.6356, allocations: 3.563 MB / 0.5008 GB, free: 2.934 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.6356, allocations: 0 / 0.5008 GB, free: 2.934 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004109/0.6398, allocations: 1.077 MB / 0.5018 GB, free: 1.855 MB / 414.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 (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.006325/0.6461, allocations: 3.823 MB / 0.5056 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.6489, allocations: 1.463 MB / 0.507 GB, free: 12.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.6489, allocations: 1.312 kB / 0.507 GB, free: 12.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.6501, allocations: 0.7981 MB / 0.5078 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004774/0.6549, allocations: 0.9421 MB / 0.5087 GB, free: 10.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2843/0.9392, allocations: 43.48 MB / 0.5511 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/0.9411, allocations: 2.606 MB / 0.5537 GB, free: 157.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002454/0.9436, allocations: 0.6892 MB / 0.5544 GB, free: 157.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/0.9457, allocations: 2.412 MB / 0.5567 GB, free: 155 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.9457, allocations: 0 / 0.5567 GB, free: 155 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1537/1.099, allocations: 104.1 MB / 0.6584 GB, free: 55.37 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/1.1, allocations: 183.2 kB / 0.6586 GB, free: 55.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/7.926, allocations: 0 / 0.6586 GB, free: 55.13 MB / 446.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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat