Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.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.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",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.001311/0.001311, allocations: 175.6 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.635/1.635, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009402/0.0009402, allocations: 92.89 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.742e-05/2.74e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1402, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3743/0.5145, allocations: 91.82 MB / 479.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.5148, allocations: 71.97 kB / 479.4 MB, free: 2.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1122/0.627, allocations: 55.14 MB / 0.5221 GB, free: 11.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.679e-06/0.6271, allocations: 0 / 0.5221 GB, free: 11.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.143e-05/0.6272, allocations: 27.94 kB / 0.5221 GB, free: 11.55 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002784/0.6299, allocations: 1.547 MB / 0.5236 GB, free: 9.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.63, allocations: 12.03 kB / 0.5236 GB, free: 9.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002356/0.6303, allocations: 193.8 kB / 0.5238 GB, free: 9.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.6319, allocations: 1.143 MB / 0.5249 GB, free: 8.562 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.632, allocations: 16 kB / 0.5249 GB, free: 8.547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.678e-05/0.6321, allocations: 28 kB / 0.5249 GB, free: 8.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006886/0.6328, allocations: 398.5 kB / 0.5253 GB, free: 8.129 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007163/0.6335, allocations: 419.9 kB / 0.5257 GB, free: 7.711 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.6335, allocations: 0 / 0.5257 GB, free: 7.711 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.578e-05/0.6336, allocations: 11.98 kB / 0.5257 GB, free: 7.699 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.6336, allocations: 12 kB / 0.5257 GB, free: 7.688 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003246/0.6369, allocations: 2.034 MB / 0.5277 GB, free: 5.582 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008055/0.6377, allocations: 0.6293 MB / 0.5283 GB, free: 4.902 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/0.6383, allocations: 478.5 kB / 0.5288 GB, free: 4.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.6483, allocations: 7.737 MB / 0.5364 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004733/0.6488, allocations: 258.5 kB / 0.5366 GB, free: 11.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=55): time 3.907e-06/0.6489, allocations: 0 / 0.5366 GB, free: 11.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=59): time 0.004503/0.6534, allocations: 2.237 MB / 0.5388 GB, free: 8.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.6534, allocations: 63.84 kB / 0.5389 GB, free: 8.844 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/0.6548, allocations: 0.9903 MB / 0.5398 GB, free: 7.859 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.408e-05/0.6549, allocations: 25.7 kB / 0.5398 GB, free: 7.828 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006908/0.6556, allocations: 0.715 MB / 0.5405 GB, free: 7.105 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.6558, allocations: 189.1 kB / 0.5407 GB, free: 6.918 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.6558, allocations: 0 / 0.5407 GB, free: 6.918 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.656, allocations: 337.9 kB / 0.541 GB, free: 6.582 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.6562, allocations: 153.6 kB / 0.5412 GB, free: 6.434 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.6566, allocations: 318.1 kB / 0.5415 GB, free: 6.055 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007719/0.6574, allocations: 377.6 kB / 0.5419 GB, free: 5.684 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.6574, allocations: 0 / 0.5419 GB, free: 5.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001834/0.6592, allocations: 0.9572 MB / 0.5428 GB, free: 4.715 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.6593, allocations: 8 kB / 0.5428 GB, free: 4.707 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.129e-05/0.6594, allocations: 55.98 kB / 0.5429 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004276/0.6598, allocations: 148 kB / 0.543 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.6603, allocations: 115.8 kB / 0.5431 GB, free: 4.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/0.663, allocations: 2.238 MB / 0.5453 GB, free: 2.043 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.6636, allocations: 19.98 kB / 0.5453 GB, free: 2.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.565e-05/0.6637, allocations: 32.06 kB / 0.5453 GB, free: 1.992 MB / 426.7 MB 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 {(5,64.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001564/0.6639, allocations: 122.7 kB / 0.5455 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0015/0.6654, allocations: 0.8443 MB / 0.5463 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.6656, allocations: 181.8 kB / 0.5465 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2404/0.9059, allocations: 0.9572 MB / 0.5474 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.906, allocations: 5.312 kB / 0.5474 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.906, allocations: 6.625 kB / 0.5474 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.906, allocations: 6 kB / 0.5474 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.9077, allocations: 0.7884 MB / 0.5482 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-05/0.9078, allocations: 53.8 kB / 0.5482 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003562/0.9081, allocations: 68.16 kB / 0.5483 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003651/0.9085, allocations: 144.8 kB / 0.5484 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.9086, allocations: 13.69 kB / 0.5484 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.911, allocations: 2.224 MB / 0.5506 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.911, allocations: 1 kB / 0.5506 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.9132, allocations: 1.101 MB / 0.5517 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003862/0.9136, allocations: 256.2 kB / 0.5519 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.9138, allocations: 2.578 kB / 0.5519 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.9142, allocations: 19.48 kB / 0.552 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.9143, allocations: 49.38 kB / 0.552 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/0.9144, allocations: 25.75 kB / 0.552 GB, free: 108.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001093/0.9155, allocations: 0.75 MB / 0.5528 GB, free: 108.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9155, allocations: 0 / 0.5528 GB, free: 108.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001172/0.9167, allocations: 398.8 kB / 0.5531 GB, free: 108.4 MB / 426.7 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.002985/0.9196, allocations: 2.138 MB / 0.5552 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.921, allocations: 0.7524 MB / 0.556 GB, free: 107.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.921, allocations: 0 / 0.556 GB, free: 107.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000903/0.9219, allocations: 0.548 MB / 0.5565 GB, free: 107.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009625/0.9229, allocations: 167.2 kB / 0.5567 GB, free: 107.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.9271, allocations: 2.076 MB / 0.5587 GB, free: 106.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008417/0.928, allocations: 1.201 MB / 0.5599 GB, free: 105.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006448/0.9286, allocations: 153.1 kB / 0.56 GB, free: 105.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005949/0.9292, allocations: 0.5602 MB / 0.5606 GB, free: 105.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9292, allocations: 3.656 kB / 0.5606 GB, free: 105.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05789/0.9871, allocations: 24.26 MB / 0.5842 GB, free: 104.7 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.9874, allocations: 139 kB / 0.5844 GB, free: 104.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.79, allocations: 4 kB / 0.5844 GB, free: 104.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat