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.002297/0.002297, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.232/2.232, allocations: 205.4 MB / 222.5 MB, free: 9.098 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.001574/0.001574, allocations: 89.5 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000563/0.000563, allocations: 8 kB / 327 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3803, allocations: 47.58 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007583/0.3879, allocations: 5.981 MB / 380.6 MB, free: 40.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01675/0.4047, allocations: 9.11 MB / 389.7 MB, free: 33.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.4064, allocations: 37.5 kB / 389.8 MB, free: 33.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002662/0.4091, allocations: 0.5606 MB / 390.3 MB, free: 33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005053/0.4142, allocations: 1.032 MB / 391.3 MB, free: 32.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.4165, allocations: 463.3 kB / 391.8 MB, free: 31.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005906/0.4224, allocations: 2.342 MB / 394.1 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005957/0.4231, allocations: 248.3 kB / 394.4 MB, free: 29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006899/0.4238, allocations: 401.9 kB / 394.8 MB, free: 28.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005751/0.4244, allocations: 481 kB / 395.2 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.4245, allocations: 35.94 kB / 395.3 MB, free: 28.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.4269, allocations: 0.6636 MB / 395.9 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002272/0.4271, allocations: 155 kB / 396.1 MB, free: 27.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004394/0.4276, allocations: 312.8 kB / 396.4 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002087/0.4297, allocations: 1.376 MB / 397.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4297, allocations: 0 / 397.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4297, allocations: 0 / 397.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.982e-05/0.4298, allocations: 0 / 397.8 MB, free: 25.59 MB / 298.7 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.003607/0.4334, allocations: 1.764 MB / 399.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.4335, allocations: 8.031 kB / 399.5 MB, free: 23.76 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002004/0.4337, allocations: 94.45 kB / 399.6 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002488/0.4339, allocations: 205.7 kB / 399.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002734/0.4367, allocations: 1.26 MB / 401.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.4368, allocations: 29 kB / 401.1 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4369, allocations: 48 kB / 401.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.4383, allocations: 0.5197 MB / 401.7 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.4383, allocations: 0 / 401.7 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.4384, allocations: 16 kB / 401.7 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.4384, allocations: 15.95 kB / 401.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.4399, allocations: 500 kB / 402.2 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004288/0.4442, allocations: 2.119 MB / 404.3 MB, free: 18.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.4456, allocations: 0.7198 MB / 405.1 MB, free: 18.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.4559, allocations: 6.56 MB / 411.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008135/0.4568, allocations: 298.5 kB / 411.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 3.166e-06/0.4568, allocations: 0 / 411.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.005477/0.4623, allocations: 2.166 MB / 414.1 MB, free: 7.949 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.4624, allocations: 67.84 kB / 414.1 MB, free: 7.871 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/0.4643, allocations: 1.273 MB / 415.4 MB, free: 6.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.4644, allocations: 41.69 kB / 415.5 MB, free: 6.555 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005422/0.465, allocations: 0.6276 MB / 416.1 MB, free: 5.926 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.4652, allocations: 205 kB / 416.3 MB, free: 5.723 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.4652, allocations: 12 kB / 416.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.176e-05/0.4653, allocations: 338.8 kB / 416.6 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006759/0.466, allocations: 205.5 kB / 416.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007219/0.4667, allocations: 376.9 kB / 417.2 MB, free: 4.742 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007306/0.4675, allocations: 250.8 kB / 417.4 MB, free: 4.496 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4675, allocations: 8 kB / 417.4 MB, free: 4.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002162/0.4697, allocations: 0.7754 MB / 418.2 MB, free: 3.703 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.4697, allocations: 8.938 kB / 418.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.4699, allocations: 64.56 kB / 418.3 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/0.4705, allocations: 162.4 kB / 418.4 MB, free: 3.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007692/0.4713, allocations: 123.8 kB / 418.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003581/0.4749, allocations: 2.328 MB / 420.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009234/0.4758, allocations: 28.03 kB / 420.9 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.581e-05/0.4759, allocations: 35.98 kB / 421 MB, free: 0.8203 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) 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 () * Number of clocked 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 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006653/0.4766, allocations: 284.8 kB / 421.2 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.4769, allocations: 177.9 kB / 421.4 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003172/0.48, allocations: 0.9217 MB / 422.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.4801, allocations: 4 kB / 422.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/0.4801, allocations: 7.953 kB / 422.3 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.4802, allocations: 3.984 kB / 422.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.4819, allocations: 0.8553 MB / 423.2 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001426/0.4821, allocations: 55.98 kB / 423.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.4827, allocations: 71.83 kB / 423.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006598/0.4834, allocations: 151.6 kB / 423.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.878e-05/0.4835, allocations: 19.95 kB / 423.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004315/0.4878, allocations: 2.322 MB / 425.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4879, allocations: 0 / 425.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.4913, allocations: 1.096 MB / 426.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006241/0.492, allocations: 246.9 kB / 427.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.4923, allocations: 19.98 kB / 427.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006678/0.4929, allocations: 31.94 kB / 427.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.4932, allocations: 44.38 kB / 427.3 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/0.4933, allocations: 27.92 kB / 427.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001844/0.4951, allocations: 0.8459 MB / 428.1 MB, free: 9.426 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4951, allocations: 0 / 428.1 MB, free: 9.426 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001527/0.4967, allocations: 379.8 kB / 428.5 MB, free: 9.055 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * 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 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004815/0.5015, allocations: 1.965 MB / 430.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002747/0.5043, allocations: 0.8639 MB / 431.3 MB, free: 6.168 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.5044, allocations: 4.25 kB / 431.3 MB, free: 6.164 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.5061, allocations: 0.5865 MB / 431.9 MB, free: 5.555 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.5073, allocations: 170.3 kB / 432.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02823/0.5356, allocations: 11.53 MB / 443.6 MB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.5366, allocations: 1.205 MB / 444.8 MB, free: 7.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.5378, allocations: 0.5735 MB / 445.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5378, allocations: 3.938 kB / 445.4 MB, free: 7.379 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.115/3.653, allocations: 29.17 MB / 474.6 MB, free: 10.17 MB / 362.7 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