Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",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.002066/0.002066, allocations: 180.1 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.321/2.321, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 89.44 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.515e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3373, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.4824, allocations: 89.62 MB / 452 MB, free: 12.58 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.4827, allocations: 75.95 kB / 452.1 MB, free: 12.51 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1798/0.6626, allocations: 51.58 MB / 0.4919 GB, free: 8.949 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.6626, allocations: 0 / 0.4919 GB, free: 8.949 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001084/0.6627, allocations: 24 kB / 0.4919 GB, free: 8.926 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.004235/0.667, allocations: 1.543 MB / 0.4934 GB, free: 7.34 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.6671, allocations: 12.03 kB / 0.4934 GB, free: 7.328 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005193/0.6676, allocations: 198.3 kB / 0.4936 GB, free: 7.133 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003119/0.6707, allocations: 1.143 MB / 0.4947 GB, free: 5.941 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.6708, allocations: 12 kB / 0.4947 GB, free: 5.93 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.6709, allocations: 35.92 kB / 0.4948 GB, free: 5.895 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001073/0.672, allocations: 394.5 kB / 0.4952 GB, free: 5.512 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.6731, allocations: 423.9 kB / 0.4956 GB, free: 5.086 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.6732, allocations: 2.531 kB / 0.4956 GB, free: 5.086 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.056e-05/0.6733, allocations: 0 / 0.4956 GB, free: 5.086 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-05/0.6733, allocations: 19.94 kB / 0.4956 GB, free: 5.066 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005322/0.6786, allocations: 2.028 MB / 0.4976 GB, free: 2.969 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.6798, allocations: 0.6388 MB / 0.4982 GB, free: 2.285 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009533/0.6808, allocations: 474.1 kB / 0.4986 GB, free: 1.816 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2864/0.9672, allocations: 7.725 MB / 0.5062 GB, free: 94.81 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006174/0.9679, allocations: 246.1 kB / 0.5064 GB, free: 94.76 MB / 395.1 MB Notification: Performance of pre-optimization done (n=55): time 3.747e-06/0.9679, allocations: 0 / 0.5064 GB, free: 94.76 MB / 395.1 MB Notification: Performance of matching and sorting (n=59): time 0.007996/0.9759, allocations: 2.247 MB / 0.5086 GB, free: 94.2 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.976, allocations: 60.98 kB / 0.5087 GB, free: 94.14 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002214/0.9782, allocations: 0.9844 MB / 0.5096 GB, free: 93.98 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.9784, allocations: 29.33 kB / 0.5097 GB, free: 93.95 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006433/0.9791, allocations: 0.6289 MB / 0.5103 GB, free: 93.74 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002886/0.9794, allocations: 199.3 kB / 0.5105 GB, free: 93.64 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.9794, allocations: 0 / 0.5105 GB, free: 93.64 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.085e-05/0.9795, allocations: 336.6 kB / 0.5108 GB, free: 93.32 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.98, allocations: 158.1 kB / 0.5109 GB, free: 93.32 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004881/0.9805, allocations: 315.9 kB / 0.5112 GB, free: 93.14 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.9819, allocations: 374.4 kB / 0.5116 GB, free: 93.13 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.982, allocations: 1.375 kB / 0.5116 GB, free: 93.13 MB / 395.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002667/0.9847, allocations: 0.7975 MB / 0.5124 GB, free: 93.06 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.9847, allocations: 7.906 kB / 0.5124 GB, free: 93.06 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000194/0.9849, allocations: 61.73 kB / 0.5124 GB, free: 93.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006628/0.9856, allocations: 151.5 kB / 0.5126 GB, free: 93.04 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008778/0.9865, allocations: 120.3 kB / 0.5127 GB, free: 93.04 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.9903, allocations: 2.223 MB / 0.5149 GB, free: 91.72 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.9915, allocations: 22.3 kB / 0.5149 GB, free: 91.72 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.9916, allocations: 35.77 kB / 0.5149 GB, free: 91.72 MB / 395.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vcs:VARIABLE(unit = "V" ) type: Real T1.vcs:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002602/0.9919, allocations: 124.4 kB / 0.515 GB, free: 91.61 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002732/0.9947, allocations: 0.8425 MB / 0.5159 GB, free: 91.46 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004569/0.9952, allocations: 177.1 kB / 0.516 GB, free: 91.37 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003613/0.9988, allocations: 0.9767 MB / 0.517 GB, free: 91.27 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.9989, allocations: 5.031 kB / 0.517 GB, free: 91.27 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.9989, allocations: 3.062 kB / 0.517 GB, free: 91.27 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.9989, allocations: 4.422 kB / 0.517 GB, free: 91.27 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/1.001, allocations: 0.7849 MB / 0.5178 GB, free: 91.1 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001747/1.001, allocations: 55.27 kB / 0.5178 GB, free: 91.1 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006273/1.002, allocations: 72.2 kB / 0.5179 GB, free: 91.1 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006318/1.002, allocations: 144.5 kB / 0.518 GB, free: 91.09 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/1.002, allocations: 16.34 kB / 0.518 GB, free: 91.09 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003609/1.006, allocations: 2.212 MB / 0.5202 GB, free: 89.77 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/1.006, allocations: 2.625 kB / 0.5202 GB, free: 89.77 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/1.009, allocations: 1.103 MB / 0.5213 GB, free: 89.56 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007365/1.01, allocations: 252.2 kB / 0.5215 GB, free: 89.38 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000237/1.01, allocations: 7.078 kB / 0.5215 GB, free: 89.38 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007288/1.011, allocations: 24.42 kB / 0.5216 GB, free: 89.38 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/1.011, allocations: 45.81 kB / 0.5216 GB, free: 89.38 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.787e-05/1.012, allocations: 22.19 kB / 0.5216 GB, free: 89.38 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001415/1.013, allocations: 0.7478 MB / 0.5223 GB, free: 89.27 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.82e-07/1.013, allocations: 0 / 0.5223 GB, free: 89.27 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001871/1.015, allocations: 396.9 kB / 0.5227 GB, free: 89.27 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vcs,T2.vbe,T2.vcs) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,50.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004439/1.019, allocations: 2.144 MB / 0.5248 GB, free: 88.54 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/1.021, allocations: 0.7655 MB / 0.5256 GB, free: 88.34 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/1.021, allocations: 0 / 0.5256 GB, free: 88.34 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001325/1.023, allocations: 0.55 MB / 0.5261 GB, free: 88.14 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/1.024, allocations: 151.8 kB / 0.5263 GB, free: 88.12 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006056/1.03, allocations: 2.109 MB / 0.5283 GB, free: 87.42 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006837/1.031, allocations: 1.2 MB / 0.5295 GB, free: 86.69 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008746/1.032, allocations: 0.5637 MB / 0.53 GB, free: 86.68 MB / 395.1 MB Notification: Performance of SimCode: time 1.233e-06/1.032, allocations: 0 / 0.53 GB, free: 86.68 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.341/4.372, allocations: 28.46 MB / 0.5578 GB, free: 76.64 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat