Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.001598/0.001598, allocations: 184.4 kB / 16.41 MB, free: 5.703 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.942/1.942, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001143/0.001142, allocations: 90.92 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003984/0.0003984, allocations: 8 kB / 327.1 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3406, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1684/0.509, allocations: 102.3 MB / 476.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.5094, allocations: 75.95 kB / 477 MB, free: 10.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6625/1.172, allocations: 127.5 MB / 0.5903 GB, free: 22.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.116e-06/1.172, allocations: 0 / 0.5903 GB, free: 22.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002099/1.172, allocations: 48 kB / 0.5904 GB, free: 22.87 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008859/1.181, allocations: 3.575 MB / 0.5939 GB, free: 19.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/1.181, allocations: 15.97 kB / 0.5939 GB, free: 19.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003439/1.182, allocations: 94.5 kB / 0.594 GB, free: 19.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007136/1.182, allocations: 418.9 kB / 0.5944 GB, free: 18.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006439/1.189, allocations: 2.472 MB / 0.5968 GB, free: 16.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.998e-05/1.189, allocations: 36.95 kB / 0.5968 GB, free: 16.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002182/1.189, allocations: 55.94 kB / 0.5969 GB, free: 16.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/1.191, allocations: 0.8573 MB / 0.5977 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/1.191, allocations: 4 kB / 0.5977 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/1.191, allocations: 24 kB / 0.5977 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.877e-05/1.191, allocations: 19.98 kB / 0.5978 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002484/1.194, allocations: 0.8554 MB / 0.5986 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008675/1.203, allocations: 3.282 MB / 0.6018 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/1.205, allocations: 0.6142 MB / 0.6024 GB, free: 10.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05604/1.261, allocations: 36.06 MB / 0.6376 GB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/1.262, allocations: 385.5 kB / 0.638 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 5.04e-06/1.262, allocations: 4 kB / 0.638 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.004624/1.267, allocations: 1.485 MB / 0.6394 GB, free: 15.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/1.267, allocations: 277 kB / 0.6397 GB, free: 14.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006858/1.274, allocations: 2.702 MB / 0.6423 GB, free: 12.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001736/1.274, allocations: 37.7 kB / 0.6424 GB, free: 12.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/1.276, allocations: 1.298 MB / 0.6436 GB, free: 10.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003528/1.277, allocations: 169.6 kB / 0.6438 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/1.277, allocations: 20 kB / 0.6438 GB, free: 10.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/1.277, allocations: 342.8 kB / 0.6441 GB, free: 10.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/1.278, allocations: 261.8 kB / 0.6444 GB, free: 9.965 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/1.28, allocations: 0.6673 MB / 0.645 GB, free: 9.098 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/1.281, allocations: 348.5 kB / 0.6454 GB, free: 8.758 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/1.281, allocations: 4 kB / 0.6454 GB, free: 8.754 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003416/1.284, allocations: 0.9482 MB / 0.6463 GB, free: 7.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/1.285, allocations: 13.41 kB / 0.6463 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/1.285, allocations: 79.98 kB / 0.6464 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.622e-05/1.285, allocations: 20 kB / 0.6464 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/1.286, allocations: 216 kB / 0.6466 GB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.205e-05/1.286, allocations: 31.81 kB / 0.6466 GB, free: 7.445 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/1.289, allocations: 123 kB / 0.6468 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/1.289, allocations: 67.98 kB / 0.6468 GB, free: 7.258 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001693/1.291, allocations: 456 kB / 0.6473 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009596/1.292, allocations: 403.1 kB / 0.6476 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006047/1.298, allocations: 1.309 MB / 0.6489 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/1.298, allocations: 8 kB / 0.6489 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/1.298, allocations: 0 / 0.6489 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/1.298, allocations: 3.953 kB / 0.6489 GB, free: 5.078 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007346/1.305, allocations: 2.33 MB / 0.6512 GB, free: 2.676 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001756/1.305, allocations: 72.05 kB / 0.6513 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009552/1.306, allocations: 103.9 kB / 0.6514 GB, free: 2.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.468e-05/1.306, allocations: 4 kB / 0.6514 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/1.307, allocations: 35.94 kB / 0.6514 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/1.307, allocations: 4 kB / 0.6514 GB, free: 2.461 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/1.307, allocations: 4 kB / 0.6514 GB, free: 2.457 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004605/1.311, allocations: 1.44 MB / 0.6528 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.313, allocations: 0.5194 MB / 0.6533 GB, free: 444 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007496/1.314, allocations: 8 kB / 0.6533 GB, free: 436 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/1.316, allocations: 60 kB / 0.6534 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003032/1.316, allocations: 55.94 kB / 0.6535 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/1.316, allocations: 39.98 kB / 0.6535 GB, free: 280 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.3012/1.617, allocations: 2.065 MB / 0.6555 GB, free: 96.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.617, allocations: 0 / 0.6555 GB, free: 96.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002523/1.62, allocations: 0.666 MB / 0.6562 GB, free: 96.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.005999/1.626, allocations: 2.875 MB / 0.659 GB, free: 95.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002641/1.629, allocations: 0.8463 MB / 0.6598 GB, free: 95.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.629, allocations: 2.844 kB / 0.6598 GB, free: 95.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/1.63, allocations: 466.7 kB / 0.6602 GB, free: 95.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/1.633, allocations: 0.5247 MB / 0.6608 GB, free: 95.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0522/1.685, allocations: 27.98 MB / 0.6881 GB, free: 76.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/1.687, allocations: 1.783 MB / 0.6898 GB, free: 75.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002052/1.689, allocations: 1.267 MB / 0.6911 GB, free: 75.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.152e-06/1.689, allocations: 2.531 kB / 0.6911 GB, free: 75.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.409/5.098, allocations: 51.77 MB / 0.7416 GB, free: 53.33 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat