Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 180.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008841, allocations: 95.91 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003046, allocations: 4 kB / 351.2 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2668, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.4016, allocations: 104.3 MB / 0.494 GB, free: 8.121 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.4019, allocations: 75.95 kB / 0.4941 GB, free: 8.047 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5331/0.935, allocations: 143.3 MB / 0.634 GB, free: 8.578 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.935, allocations: 4 kB / 0.634 GB, free: 8.574 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000101/0.9351, allocations: 48 kB / 0.634 GB, free: 8.527 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006879/0.942, allocations: 3.554 MB / 0.6375 GB, free: 4.902 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.9421, allocations: 8.031 kB / 0.6375 GB, free: 4.895 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000237/0.9423, allocations: 98.5 kB / 0.6376 GB, free: 4.789 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005446/0.9429, allocations: 414.9 kB / 0.638 GB, free: 4.379 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00438/0.9473, allocations: 2.444 MB / 0.6404 GB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.9473, allocations: 40.95 kB / 0.6404 GB, free: 1.824 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.9475, allocations: 59.91 kB / 0.6405 GB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.949, allocations: 0.8534 MB / 0.6413 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.949, allocations: 0 / 0.6413 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.425e-05/0.9491, allocations: 27.98 kB / 0.6413 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.497e-05/0.9491, allocations: 16 kB / 0.6414 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.9507, allocations: 0.8631 MB / 0.6422 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006055/0.9567, allocations: 3.266 MB / 0.6454 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.9579, allocations: 0.6181 MB / 0.646 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3022/1.26, allocations: 35.94 MB / 0.6811 GB, free: 57.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007239/1.261, allocations: 385.3 kB / 0.6815 GB, free: 57.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.987e-06/1.261, allocations: 7.312 kB / 0.6815 GB, free: 57.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002354/1.263, allocations: 1.482 MB / 0.6829 GB, free: 56.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.44e-05/1.263, allocations: 269.6 kB / 0.6832 GB, free: 56.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/1.267, allocations: 2.691 MB / 0.6858 GB, free: 55.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.529e-05/1.267, allocations: 37.42 kB / 0.6858 GB, free: 55.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/1.268, allocations: 1.58 MB / 0.6874 GB, free: 55.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/1.269, allocations: 162.4 kB / 0.6875 GB, free: 55.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/1.269, allocations: 19.53 kB / 0.6876 GB, free: 55.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/1.269, allocations: 339.3 kB / 0.6879 GB, free: 55.24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/1.269, allocations: 261 kB / 0.6881 GB, free: 55.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007584/1.27, allocations: 0.6692 MB / 0.6888 GB, free: 54.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006179/1.271, allocations: 350.1 kB / 0.6891 GB, free: 54.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.874e-06/1.271, allocations: 3.906 kB / 0.6891 GB, free: 54.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002118/1.273, allocations: 1.287 MB / 0.6904 GB, free: 54.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/1.273, allocations: 15.69 kB / 0.6904 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/1.273, allocations: 84.42 kB / 0.6905 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.497e-05/1.273, allocations: 17.53 kB / 0.6905 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/1.274, allocations: 209.2 kB / 0.6907 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/1.274, allocations: 33.78 kB / 0.6907 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/1.275, allocations: 127.5 kB / 0.6908 GB, free: 54.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.79e-05/1.275, allocations: 63.97 kB / 0.6909 GB, free: 54.46 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.001083/1.276, allocations: 460.7 kB / 0.6913 GB, free: 54.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000334/1.277, allocations: 401.3 kB / 0.6917 GB, free: 54.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002912/1.28, allocations: 1.291 MB / 0.693 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.28, allocations: 3.781 kB / 0.693 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/1.28, allocations: 0 / 0.693 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/1.28, allocations: 3.844 kB / 0.693 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/1.283, allocations: 2.332 MB / 0.6953 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.154e-05/1.283, allocations: 70.7 kB / 0.6953 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/1.284, allocations: 104.1 kB / 0.6954 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/1.284, allocations: 0 / 0.6954 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.489e-05/1.284, allocations: 34.25 kB / 0.6955 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/1.284, allocations: 3.969 kB / 0.6955 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.284, allocations: 5.594 kB / 0.6955 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/1.286, allocations: 1.434 MB / 0.6969 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009322/1.287, allocations: 0.5186 MB / 0.6974 GB, free: 52.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000287/1.287, allocations: 11.06 kB / 0.6974 GB, free: 52.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000704/1.288, allocations: 46.98 kB / 0.6974 GB, free: 52.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/1.288, allocations: 68.64 kB / 0.6975 GB, free: 52.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-05/1.288, allocations: 32.28 kB / 0.6975 GB, free: 52.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002624/1.291, allocations: 2.056 MB / 0.6995 GB, free: 52.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.291, allocations: 0 / 0.6995 GB, free: 52.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001768/1.292, allocations: 0.6633 MB / 0.7002 GB, free: 52.71 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.004059/1.297, allocations: 2.867 MB / 0.703 GB, free: 51.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/1.298, allocations: 0.8506 MB / 0.7038 GB, free: 51.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/1.298, allocations: 0 / 0.7038 GB, free: 51.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006711/1.299, allocations: 464.2 kB / 0.7043 GB, free: 51.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/1.301, allocations: 0.6238 MB / 0.7049 GB, free: 51.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/1.337, allocations: 27.76 MB / 0.732 GB, free: 32.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009669/1.338, allocations: 1.773 MB / 0.7337 GB, free: 31.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001502/1.339, allocations: 384.5 kB / 0.7341 GB, free: 31.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001108/1.34, allocations: 1.252 MB / 0.7353 GB, free: 31.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.954e-06/1.34, allocations: 0 / 0.7353 GB, free: 31.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/1.444, allocations: 62.3 MB / 0.7961 GB, free: 3.086 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/1.444, allocations: 191.3 kB / 0.7963 GB, free: 2.844 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.418/5.862, allocations: 2.625 kB / 0.7963 GB, free: 2.844 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat