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.001365/0.001365, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 59.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2507, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008708/0.2595, allocations: 7.522 MB / 416.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.273, allocations: 10.73 MB / 427.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.2743, allocations: 79.25 kB / 427.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.2763, allocations: 0.7092 MB / 427.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004612/0.281, allocations: 1.188 MB / 429 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002182/0.2832, allocations: 0.6739 MB / 429.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004422/0.2876, allocations: 2.564 MB / 432.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005541/0.2882, allocations: 291.9 kB / 432.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007893/0.289, allocations: 489.6 kB / 433 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006823/0.2897, allocations: 0.5317 MB / 433.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.2898, allocations: 56 kB / 433.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001998/0.2918, allocations: 0.7727 MB / 434.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001911/0.292, allocations: 186.8 kB / 434.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007257/0.2928, allocations: 0.6793 MB / 435.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002903/0.2957, allocations: 1.948 MB / 437.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2957, allocations: 0 / 437.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.2957, allocations: 0 / 437.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.549e-05/0.2958, allocations: 4 kB / 437.2 MB, free: 4.926 MB / 350.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.003239/0.299, allocations: 2.05 MB / 439.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.2991, allocations: 8.031 kB / 439.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.2992, allocations: 86.7 kB / 439.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002477/0.2994, allocations: 211.7 kB / 439.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.3014, allocations: 1.358 MB / 440.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.3014, allocations: 37 kB / 441 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.731e-05/0.3015, allocations: 43.95 kB / 441 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009779/0.3025, allocations: 0.5119 MB / 441.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3026, allocations: 0 / 441.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.863e-05/0.3026, allocations: 16 kB / 441.5 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.3026, allocations: 23.98 kB / 441.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.3036, allocations: 472.1 kB / 442 MB, free: 0 / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.3069, allocations: 2.101 MB / 444.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.308, allocations: 0.7079 MB / 444.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007982/0.3088, allocations: 0.5174 MB / 445.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006584/0.3154, allocations: 4.912 MB / 450.3 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000651/0.3161, allocations: 314 kB / 450.6 MB, free: 6.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.016e-06/0.3161, allocations: 0 / 450.6 MB, free: 6.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005295/0.3214, allocations: 2.432 MB / 453 MB, free: 4.141 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.3215, allocations: 63.84 kB / 453.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001692/0.3232, allocations: 1.291 MB / 454.3 MB, free: 2.777 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.3232, allocations: 37.7 kB / 454.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007142/0.3239, allocations: 0.7002 MB / 455.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.3242, allocations: 234 kB / 455.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.3244, allocations: 118.3 kB / 455.4 MB, free: 1.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3246, allocations: 334 kB / 455.8 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.325, allocations: 217.5 kB / 456 MB, free: 1.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005879/0.3256, allocations: 360.5 kB / 456.3 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.3268, allocations: 0.6073 MB / 456.9 MB, free: 64 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3268, allocations: 7.938 kB / 456.9 MB, free: 56 kB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001862/0.3287, allocations: 0.9748 MB / 457.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.3287, allocations: 8 kB / 457.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.3288, allocations: 64 kB / 458 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.3293, allocations: 183.8 kB / 458.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004555/0.3298, allocations: 107.8 kB / 458.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/0.3333, allocations: 2.764 MB / 461 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.3337, allocations: 24.03 kB / 461 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.504e-05/0.3338, allocations: 36 kB / 461.1 MB, free: 11.76 MB / 382.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 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004336/0.3343, allocations: 273.7 kB / 461.4 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.3345, allocations: 190.8 kB / 461.5 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/0.3365, allocations: 0.972 MB / 462.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.3365, allocations: 8 kB / 462.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3366, allocations: 4 kB / 462.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3366, allocations: 7.984 kB / 462.5 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.3377, allocations: 0.9059 MB / 463.4 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-05/0.3378, allocations: 63.94 kB / 463.5 MB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.3381, allocations: 67.92 kB / 463.6 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004514/0.3386, allocations: 172.7 kB / 463.7 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/0.3386, allocations: 23.94 kB / 463.8 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00344/0.3421, allocations: 2.751 MB / 466.5 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3421, allocations: 0 / 466.5 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.3444, allocations: 1.198 MB / 467.7 MB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003874/0.3448, allocations: 256 kB / 468 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/0.3449, allocations: 15.92 kB / 468 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.3453, allocations: 23.98 kB / 468 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3455, allocations: 52.38 kB / 468 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.415e-05/0.3455, allocations: 23.98 kB / 468.1 MB, free: 4.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00119/0.3467, allocations: 0.8496 MB / 468.9 MB, free: 3.672 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3467, allocations: 0 / 468.9 MB, free: 3.672 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009759/0.3477, allocations: 391.2 kB / 469.3 MB, free: 3.289 MB / 382.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003269/0.351, allocations: 2.106 MB / 471.4 MB, free: 1.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.3528, allocations: 0.9172 MB / 472.3 MB, free: 216 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3529, allocations: 0 / 472.3 MB, free: 216 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.354, allocations: 0.6509 MB / 473 MB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009668/0.355, allocations: 210.1 kB / 473.2 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0147/0.3697, allocations: 9.454 MB / 482.6 MB, free: 5.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008761/0.3706, allocations: 1.174 MB / 483.8 MB, free: 4.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005284/0.3711, allocations: 183.2 kB / 484 MB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006792/0.3718, allocations: 0.5735 MB / 484.6 MB, free: 3.605 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3718, allocations: 0 / 484.6 MB, free: 3.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07587/0.4477, allocations: 29.73 MB / 0.5022 GB, free: 5.992 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.19, allocations: 10.2 kB / 0.5022 GB, free: 5.988 MB / 430.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/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)