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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008565/0.0008564, allocations: 87.88 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009512/0.0009512, allocations: 178.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 241.2 MB, free: 336 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002524/0.0002525, allocations: 8.781 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09599, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006316/0.1024, allocations: 6.567 MB / 357.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.1157, allocations: 9.816 MB / 367.7 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.117, allocations: 39.69 kB / 367.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.119, allocations: 0.5516 MB / 368.3 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003139/0.1221, allocations: 0.9081 MB / 369.2 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.1237, allocations: 462.9 kB / 369.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1697/0.2934, allocations: 2.327 MB / 372 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000588/0.2941, allocations: 249.9 kB / 372.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007126/0.2948, allocations: 434.5 kB / 372.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005543/0.2953, allocations: 491.7 kB / 373.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.875e-05/0.2954, allocations: 30.88 kB / 373.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002009/0.2975, allocations: 0.6851 MB / 373.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.2976, allocations: 149.6 kB / 374 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.298, allocations: 319.5 kB / 374.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.2996, allocations: 1.398 MB / 375.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2997, allocations: 1.375 kB / 375.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2997, allocations: 0 / 375.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.357e-05/0.2997, allocations: 0 / 375.7 MB, free: 10.29 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.002647/0.3024, allocations: 1.775 MB / 377.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3024, allocations: 10.66 kB / 377.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001138/0.3025, allocations: 90.03 kB / 377.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.3028, allocations: 194.3 kB / 377.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.3048, allocations: 1.272 MB / 379.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.3049, allocations: 36.33 kB / 379.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.729e-05/0.305, allocations: 44.69 kB / 379.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.306, allocations: 0.525 MB / 379.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3061, allocations: 3.828 kB / 379.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.494e-05/0.3061, allocations: 17.94 kB / 379.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.3061, allocations: 14.97 kB / 379.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009673/0.3071, allocations: 495.5 kB / 380.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.3107, allocations: 2.101 MB / 382.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009106/0.3116, allocations: 0.7223 MB / 383 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007369/0.3124, allocations: 0.5287 MB / 383.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007241/0.3196, allocations: 6.55 MB / 390.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005492/0.3202, allocations: 311 kB / 390.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of pre-optimization done (n=55): time 3.497e-06/0.3202, allocations: 0 / 390.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=59): time 0.003713/0.3239, allocations: 1.998 MB / 392.4 MB, free: 1.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.324, allocations: 64.69 kB / 392.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.3254, allocations: 1.283 MB / 393.7 MB, free: 1.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.3255, allocations: 34.33 kB / 393.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004721/0.3259, allocations: 0.7062 MB / 394.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.3261, allocations: 203.5 kB / 394.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.3261, allocations: 15.28 kB / 394.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.998e-05/0.3262, allocations: 332.7 kB / 395 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.3266, allocations: 213.4 kB / 395.2 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004627/0.327, allocations: 370.4 kB / 395.6 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.3275, allocations: 253.7 kB / 395.8 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.3275, allocations: 5.328 kB / 395.8 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001567/0.3291, allocations: 0.9267 MB / 396.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3291, allocations: 8.469 kB / 396.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.608e-05/0.3292, allocations: 55.5 kB / 396.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.3296, allocations: 158.6 kB / 397 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.33, allocations: 117.2 kB / 397.1 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/0.3325, allocations: 2.306 MB / 399.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007741/0.3333, allocations: 31.03 kB / 399.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-05/0.3333, allocations: 33.09 kB / 399.5 MB, free: 14.98 MB / 318.1 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 () * 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,75.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005723/0.3339, allocations: 278.9 kB / 399.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000239/0.3342, allocations: 186.9 kB / 399.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.336, allocations: 0.9042 MB / 400.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.336, allocations: 6.25 kB / 400.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.336, allocations: 0 / 400.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.336, allocations: 3.984 kB / 400.8 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.3375, allocations: 0.8708 MB / 401.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.592e-05/0.3376, allocations: 49.53 kB / 401.7 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/0.338, allocations: 78.66 kB / 401.8 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003855/0.3383, allocations: 136.5 kB / 402 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/0.3384, allocations: 27.64 kB / 402 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/0.3414, allocations: 2.289 MB / 404.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3414, allocations: 0 / 404.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.3437, allocations: 1.089 MB / 405.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005267/0.3442, allocations: 254.9 kB / 405.6 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.3444, allocations: 12 kB / 405.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.3447, allocations: 23.97 kB / 405.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.3449, allocations: 46.56 kB / 405.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.007e-05/0.3449, allocations: 24 kB / 405.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001514/0.3464, allocations: 0.845 MB / 406.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3464, allocations: 0 / 406.6 MB, free: 9.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001725/0.3482, allocations: 379.8 kB / 406.9 MB, free: 9.555 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 (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.003671/0.3519, allocations: 1.96 MB / 408.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.3537, allocations: 0.8629 MB / 409.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3537, allocations: 0 / 409.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.3547, allocations: 0.5956 MB / 410.3 MB, free: 6.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.3562, allocations: 201.1 kB / 410.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.3741, allocations: 8.436 MB / 419 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007419/0.3749, allocations: 1.17 MB / 420.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006668/0.3756, allocations: 179.2 kB / 420.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006109/0.3762, allocations: 0.5735 MB / 420.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3762, allocations: 4 kB / 420.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05059/0.4268, allocations: 26.9 MB / 447.8 MB, free: 372 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.427, allocations: 203.8 kB / 448 MB, free: 128 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.751/3.178, allocations: 0 / 448 MB, free: 128 kB / 350.1 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