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.001073/0.001074, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.00136/0.00136, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.62/1.62, allocations: 205.4 MB / 224 MB, free: 13.16 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.000501/0.0005011, allocations: 8 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 47.57 MB / 328.4 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01906/0.1316, allocations: 20.31 MB / 348.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02501/0.1567, allocations: 18.77 MB / 367.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006171/0.1629, allocations: 55.69 kB / 367.5 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006598/0.1696, allocations: 1.27 MB / 368.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01312/0.1827, allocations: 2.988 MB / 371.8 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005555/0.1883, allocations: 1.282 MB / 373.1 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2293/0.4177, allocations: 11.83 MB / 384.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.4196, allocations: 0.7953 MB / 385.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003899/0.4235, allocations: 1.564 MB / 387.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004256/0.4278, allocations: 1.866 MB / 389.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00053/0.4284, allocations: 77.16 kB / 389.2 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006209/0.4346, allocations: 1.253 MB / 390.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001406/0.436, allocations: 0.5018 MB / 391 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003874/0.4399, allocations: 1.18 MB / 392.2 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008465/0.4484, allocations: 4.648 MB / 396.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4484, allocations: 0 / 396.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4484, allocations: 0 / 396.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002941/0.4487, allocations: 0 / 396.8 MB, free: 14.8 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.01217/0.4609, allocations: 5.872 MB / 402.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.461, allocations: 9.875 kB / 402.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005093/0.4615, allocations: 163.2 kB / 402.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.4626, allocations: 0.7498 MB / 403.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009012/0.4716, allocations: 4.315 MB / 407.9 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.705e-05/0.4717, allocations: 67.31 kB / 408 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/0.472, allocations: 102 kB / 408.1 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.4747, allocations: 1.311 MB / 409.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.4747, allocations: 4 kB / 409.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/0.4748, allocations: 34.44 kB / 409.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.103e-05/0.4749, allocations: 42.09 kB / 409.5 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002636/0.4775, allocations: 1.521 MB / 411 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.4888, allocations: 5.635 MB / 416.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.4904, allocations: 1.023 MB / 417.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05977/0.5502, allocations: 60.24 MB / 477.9 MB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.5513, allocations: 0.5723 MB / 478.5 MB, free: 5.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 3.667e-06/0.5513, allocations: 0 / 478.5 MB, free: 5.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.003811/0.5551, allocations: 2.575 MB / 481 MB, free: 2.582 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.5552, allocations: 67.89 kB / 481.1 MB, free: 2.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007168/0.5623, allocations: 5.553 MB / 486.6 MB, free: 14.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.5625, allocations: 41.14 kB / 486.7 MB, free: 14.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/0.5647, allocations: 2.937 MB / 489.6 MB, free: 12.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003434/0.5651, allocations: 305.1 kB / 489.9 MB, free: 11.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/0.5652, allocations: 30.62 kB / 490 MB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5653, allocations: 361.9 kB / 490.3 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008177/0.5662, allocations: 423.8 kB / 490.7 MB, free: 11.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.5674, allocations: 1.098 MB / 491.8 MB, free: 9.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009575/0.5684, allocations: 0.5681 MB / 492.4 MB, free: 9.074 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.5684, allocations: 12 kB / 492.4 MB, free: 9.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004014/0.5724, allocations: 2.245 MB / 494.6 MB, free: 6.816 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/0.5724, allocations: 16 kB / 494.7 MB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001923/0.5726, allocations: 160 kB / 494.8 MB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.442e-05/0.5727, allocations: 36 kB / 494.9 MB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.5739, allocations: 375.7 kB / 495.2 MB, free: 6.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-05/0.5739, allocations: 47.86 kB / 495.3 MB, free: 6.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/0.5766, allocations: 204.7 kB / 495.5 MB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/0.5768, allocations: 120 kB / 495.6 MB, free: 5.879 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.00185/0.5787, allocations: 0.7159 MB / 496.3 MB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/0.58, allocations: 0.7217 MB / 497 MB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005234/0.5852, allocations: 2.244 MB / 499.3 MB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5852, allocations: 8 kB / 499.3 MB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.5852, allocations: 0 / 499.3 MB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.5853, allocations: 3.984 kB / 499.3 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00594/0.5912, allocations: 3.646 MB / 0.4911 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001639/0.5914, allocations: 140 kB / 0.4913 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007448/0.5921, allocations: 163.9 kB / 0.4914 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.5922, allocations: 4 kB / 0.4914 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.898e-05/0.5923, allocations: 59.98 kB / 0.4915 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.256e-06/0.5923, allocations: 11.89 kB / 0.4915 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5923, allocations: 0 / 0.4915 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003389/0.5957, allocations: 2.317 MB / 0.4938 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.5974, allocations: 0.8084 MB / 0.4945 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005675/0.598, allocations: 22.19 kB / 0.4946 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.5992, allocations: 47.89 kB / 0.4946 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.5994, allocations: 100.5 kB / 0.4947 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.5995, allocations: 71.94 kB / 0.4948 GB, free: 10.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00484/0.6043, allocations: 3.567 MB / 0.4983 GB, free: 7.133 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6044, allocations: 0 / 0.4983 GB, free: 7.133 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002798/0.6072, allocations: 1.077 MB / 0.4993 GB, free: 6.055 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.004954/0.6121, allocations: 3.953 MB / 0.5032 GB, free: 2.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.6145, allocations: 1.467 MB / 0.5046 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6145, allocations: 10.34 kB / 0.5046 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.6156, allocations: 0.7903 MB / 0.5054 GB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003908/0.6195, allocations: 0.9308 MB / 0.5063 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2698/0.8893, allocations: 59.15 MB / 0.5641 GB, free: 148.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001523/0.8909, allocations: 2.72 MB / 0.5667 GB, free: 146.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002117/0.8931, allocations: 0.6904 MB / 0.5674 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001701/0.8948, allocations: 2.409 MB / 0.5697 GB, free: 144.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/0.8948, allocations: 0 / 0.5697 GB, free: 144.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1291/1.024, allocations: 102.8 MB / 0.6701 GB, free: 45.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/1.024, allocations: 186.2 kB / 0.6703 GB, free: 44.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.261/6.285, allocations: 4 kB / 0.6703 GB, free: 44.86 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