Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009433/0.0009433, allocations: 96.58 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 206.2 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002464, allocations: 4 kB / 306.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 51.48 MB / 358.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005334/0.1211, allocations: 6.117 MB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1992/0.3203, allocations: 9.418 MB / 373.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009153/0.3213, allocations: 41.81 kB / 373.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.3231, allocations: 0.5731 MB / 374.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003756/0.3269, allocations: 1.053 MB / 375.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00192/0.3288, allocations: 467.8 kB / 375.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0046/0.3334, allocations: 2.42 MB / 378.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004626/0.3339, allocations: 242.2 kB / 378.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008544/0.3348, allocations: 427.7 kB / 378.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005591/0.3354, allocations: 494.3 kB / 379.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.532e-05/0.3355, allocations: 30.84 kB / 379.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.3375, allocations: 0.7157 MB / 380.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.3377, allocations: 153.1 kB / 380.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003334/0.338, allocations: 319.8 kB / 380.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001674/0.3397, allocations: 1.369 MB / 382 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.3397, allocations: 0 / 382 MB, free: 7.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3397, allocations: 1.656 kB / 382 MB, free: 7.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.3398, allocations: 1.594 kB / 382 MB, free: 7.641 MB / 302.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.002632/0.3424, allocations: 1.772 MB / 383.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3425, allocations: 8.938 kB / 383.8 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/0.3426, allocations: 90.3 kB / 383.8 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.3428, allocations: 200.7 kB / 384 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.345, allocations: 1.263 MB / 385.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.345, allocations: 32.62 kB / 385.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.402e-05/0.3451, allocations: 46.56 kB / 385.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.3462, allocations: 0.5225 MB / 385.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3462, allocations: 1.594 kB / 385.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.953e-05/0.3463, allocations: 15.19 kB / 385.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.3463, allocations: 21.34 kB / 385.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.3473, allocations: 491.7 kB / 386.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003678/0.351, allocations: 2.126 MB / 388.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.3521, allocations: 0.7222 MB / 389.3 MB, free: 5.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006781/0.3589, allocations: 4.94 MB / 394.2 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007082/0.3597, allocations: 316.2 kB / 394.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.145e-06/0.3597, allocations: 0.5625 kB / 394.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005868/0.3656, allocations: 2.648 MB / 397.2 MB, free: 15.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.143e-05/0.3657, allocations: 60.34 kB / 397.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.3677, allocations: 1.273 MB / 398.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.882e-05/0.3678, allocations: 36.33 kB / 398.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006501/0.3684, allocations: 0.7025 MB / 399.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.3686, allocations: 220.7 kB / 399.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.3687, allocations: 14.88 kB / 399.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3688, allocations: 327.4 kB / 399.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3693, allocations: 232.5 kB / 400 MB, free: 14.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.3699, allocations: 362.7 kB / 400.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005387/0.3704, allocations: 279.1 kB / 400.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3705, allocations: 0 / 400.6 MB, free: 13.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001861/0.3723, allocations: 0.9763 MB / 401.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.3724, allocations: 11.77 kB / 401.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.151e-05/0.3725, allocations: 66.22 kB / 401.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004879/0.373, allocations: 185.5 kB / 401.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.3734, allocations: 111.4 kB / 402 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003313/0.3767, allocations: 2.561 MB / 404.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007879/0.3776, allocations: 32.81 kB / 404.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.791e-05/0.3776, allocations: 32.47 kB / 404.6 MB, free: 11.05 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (54): * Single equations (assignments): 51 * 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,75.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005637/0.3782, allocations: 278 kB / 404.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.3784, allocations: 176.8 kB / 405.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.3805, allocations: 1.002 MB / 406.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3805, allocations: 4 kB / 406.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3806, allocations: 4 kB / 406.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.3806, allocations: 7.938 kB / 406.1 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.3818, allocations: 0.9054 MB / 407 MB, free: 9.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.535e-05/0.3819, allocations: 64.86 kB / 407 MB, free: 8.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003347/0.3823, allocations: 73.75 kB / 407.1 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004394/0.3827, allocations: 168.9 kB / 407.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.3828, allocations: 27.94 kB / 407.3 MB, free: 8.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003098/0.3859, allocations: 2.562 MB / 409.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3859, allocations: 0 / 409.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002451/0.3884, allocations: 1.212 MB / 411.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/0.3891, allocations: 255 kB / 411.3 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.3892, allocations: 15.98 kB / 411.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.3896, allocations: 19.98 kB / 411.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.3898, allocations: 52.38 kB / 411.4 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.853e-05/0.3898, allocations: 19.98 kB / 411.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.391, allocations: 0.8457 MB / 412.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3911, allocations: 0 / 412.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001187/0.3922, allocations: 383.8 kB / 412.7 MB, free: 3.227 MB / 318.1 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 (31): * Single equations (assignments): 25 * 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%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004336/0.3966, allocations: 2.083 MB / 414.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002645/0.3993, allocations: 0.9331 MB / 415.7 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.3993, allocations: 3.938 kB / 415.7 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.401, allocations: 0.6494 MB / 416.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.4024, allocations: 201.9 kB / 416.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02931/0.4318, allocations: 11 MB / 427.5 MB, free: 3.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.4331, allocations: 1.201 MB / 428.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001177/0.4343, allocations: 187.2 kB / 428.9 MB, free: 2.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.4353, allocations: 0.5696 MB / 429.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of SimCode: time 1.893e-06/0.4354, allocations: 0 / 429.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05669/0.4921, allocations: 27.23 MB / 456.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.4923, allocations: 201.3 kB / 456.9 MB, free: 6.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.472/2.964, allocations: 0 / 456.9 MB, free: 6.41 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat