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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 181.1 kB / 17.01 MB, free: 5.125 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.324/1.324, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008856/0.0008852, allocations: 88.17 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002422, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2094, allocations: 47.57 MB / 375.9 MB, free: 45.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3173, allocations: 102.4 MB / 478.3 MB, free: 10.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.3176, allocations: 75.97 kB / 478.4 MB, free: 9.969 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6708/0.9884, allocations: 193.6 MB / 0.6563 GB, free: 53.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.494e-06/0.9885, allocations: 0 / 0.6563 GB, free: 53.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002381/0.9887, allocations: 87.78 kB / 0.6564 GB, free: 53.45 MB / 410.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.009423/0.9981, allocations: 6.073 MB / 0.6623 GB, free: 50.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.9982, allocations: 6.75 kB / 0.6623 GB, free: 50.35 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000313/0.9985, allocations: 165.7 kB / 0.6624 GB, free: 50.31 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008319/0.9994, allocations: 0.7464 MB / 0.6632 GB, free: 49.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007005/1.006, allocations: 4.57 MB / 0.6676 GB, free: 48.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/1.006, allocations: 67.53 kB / 0.6677 GB, free: 48.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/1.007, allocations: 103.4 kB / 0.6678 GB, free: 48.87 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/1.009, allocations: 1.532 MB / 0.6693 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/1.009, allocations: 0 / 0.6693 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/1.009, allocations: 42.97 kB / 0.6693 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.921e-05/1.009, allocations: 38.73 kB / 0.6694 GB, free: 48.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/1.011, allocations: 1.522 MB / 0.6709 GB, free: 48.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/1.023, allocations: 5.857 MB / 0.6766 GB, free: 47.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/1.025, allocations: 1.037 MB / 0.6776 GB, free: 47.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05883/1.084, allocations: 71.59 MB / 0.7475 GB, free: 27.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009035/1.085, allocations: 0.5847 MB / 0.7481 GB, free: 27.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 3.616e-06/1.085, allocations: 0 / 0.7481 GB, free: 27.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.003841/1.089, allocations: 2.579 MB / 0.7506 GB, free: 26.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/1.089, allocations: 479.3 kB / 0.7511 GB, free: 25.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005846/1.095, allocations: 4.869 MB / 0.7558 GB, free: 25.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/1.095, allocations: 46.73 kB / 0.7559 GB, free: 24.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00189/1.097, allocations: 2.947 MB / 0.7587 GB, free: 24.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/1.097, allocations: 296.6 kB / 0.759 GB, free: 24.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.136e-05/1.097, allocations: 26.81 kB / 0.759 GB, free: 24.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/1.097, allocations: 369.9 kB / 0.7594 GB, free: 23.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007428/1.098, allocations: 422.8 kB / 0.7598 GB, free: 23.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009335/1.099, allocations: 1.197 MB / 0.761 GB, free: 22.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008751/1.1, allocations: 0.5834 MB / 0.7615 GB, free: 22.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/1.1, allocations: 11 kB / 0.7615 GB, free: 22.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00344/1.103, allocations: 2.244 MB / 0.7637 GB, free: 21.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.936e-05/1.103, allocations: 13.91 kB / 0.7638 GB, free: 21.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/1.103, allocations: 164 kB / 0.7639 GB, free: 21.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.98e-05/1.103, allocations: 38.47 kB / 0.7639 GB, free: 21.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/1.105, allocations: 376.4 kB / 0.7643 GB, free: 21.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-05/1.105, allocations: 48.16 kB / 0.7643 GB, free: 21.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/1.107, allocations: 204.5 kB / 0.7645 GB, free: 21.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/1.107, allocations: 129.5 kB / 0.7647 GB, free: 21.55 MB / 442.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.001764/1.109, allocations: 0.7265 MB / 0.7654 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001428/1.11, allocations: 0.722 MB / 0.7661 GB, free: 20.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006132/1.117, allocations: 2.276 MB / 0.7683 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/1.117, allocations: 13.84 kB / 0.7683 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.117, allocations: 0 / 0.7683 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/1.117, allocations: 2.531 kB / 0.7683 GB, free: 20.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008912/1.126, allocations: 3.877 MB / 0.7721 GB, free: 16.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001392/1.126, allocations: 142.9 kB / 0.7722 GB, free: 16.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007266/1.127, allocations: 161.8 kB / 0.7724 GB, free: 16.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/1.127, allocations: 4 kB / 0.7724 GB, free: 16.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-05/1.127, allocations: 59.56 kB / 0.7725 GB, free: 16.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.524e-06/1.127, allocations: 9.781 kB / 0.7725 GB, free: 16.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.127, allocations: 7.516 kB / 0.7725 GB, free: 16.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00344/1.13, allocations: 2.312 MB / 0.7747 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002496/1.133, allocations: 0.9388 MB / 0.7756 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001458/1.134, allocations: 15.95 kB / 0.7757 GB, free: 13.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.136, allocations: 56.16 kB / 0.7757 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/1.136, allocations: 99.84 kB / 0.7758 GB, free: 13.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/1.136, allocations: 67.38 kB / 0.7759 GB, free: 13.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006478/1.143, allocations: 3.716 MB / 0.7795 GB, free: 10.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.143, allocations: 4 kB / 0.7795 GB, free: 10.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003745/1.147, allocations: 1.17 MB / 0.7807 GB, free: 9.113 MB / 442.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.006718/1.153, allocations: 4.104 MB / 0.7847 GB, free: 5.504 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002528/1.156, allocations: 1.474 MB / 0.7861 GB, free: 4.195 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.156, allocations: 0 / 0.7861 GB, free: 4.195 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/1.157, allocations: 0.7915 MB / 0.7869 GB, free: 3.418 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/1.161, allocations: 0.9515 MB / 0.7878 GB, free: 2.605 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2625/1.424, allocations: 59.85 MB / 0.8462 GB, free: 63.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/1.426, allocations: 2.723 MB / 0.8489 GB, free: 62.93 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00273/1.429, allocations: 0.7267 MB / 0.8496 GB, free: 62.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002241/1.431, allocations: 2.435 MB / 0.852 GB, free: 62.88 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/1.431, allocations: 0 / 0.852 GB, free: 62.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1453/1.576, allocations: 107.5 MB / 0.957 GB, free: 1.133 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/1.576, allocations: 192 kB / 0.9572 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.338/8.914, allocations: 4.062 kB / 0.9572 GB, free: 0.875 MB / 458.7 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) 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