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.001006/0.001006, allocations: 99.55 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002163, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1049, allocations: 51.5 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006284/0.1112, allocations: 6.58 MB / 364.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2032/0.3144, allocations: 9.842 MB / 374.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.3158, allocations: 36.66 kB / 374.8 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.3178, allocations: 0.553 MB / 375.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004398/0.3222, allocations: 0.9123 MB / 376.2 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.3245, allocations: 460.3 kB / 376.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00414/0.3286, allocations: 2.367 MB / 379 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004861/0.3291, allocations: 246.9 kB / 379.3 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006673/0.3298, allocations: 437.6 kB / 379.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004919/0.3303, allocations: 486.9 kB / 380.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.559e-05/0.3304, allocations: 30.44 kB / 380.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3324, allocations: 0.6863 MB / 380.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.3326, allocations: 152.3 kB / 381.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003802/0.333, allocations: 321.9 kB / 381.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.3346, allocations: 1.398 MB / 382.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3346, allocations: 0 / 382.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3346, allocations: 3.938 kB / 382.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.789e-05/0.3346, allocations: 0 / 382.8 MB, free: 7.262 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.002402/0.337, allocations: 1.78 MB / 384.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3371, allocations: 10.03 kB / 384.6 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.964e-05/0.3372, allocations: 93.44 kB / 384.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.3374, allocations: 196.6 kB / 384.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.3392, allocations: 1.274 MB / 386.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.3393, allocations: 30.97 kB / 386.1 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.15e-05/0.3394, allocations: 46.06 kB / 386.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009224/0.3403, allocations: 0.515 MB / 386.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.3403, allocations: 5.156 kB / 386.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.3404, allocations: 16.22 kB / 386.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.3404, allocations: 17.44 kB / 386.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008831/0.3413, allocations: 494.6 kB / 387.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002812/0.3441, allocations: 2.109 MB / 389.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008708/0.345, allocations: 0.7243 MB / 390.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006922/0.3457, allocations: 0.5385 MB / 390.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005061/0.3508, allocations: 4.911 MB / 395.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005786/0.3514, allocations: 323.4 kB / 395.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.875e-06/0.3514, allocations: 0 / 395.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004696/0.3561, allocations: 2.451 MB / 398.3 MB, free: 15.35 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.3561, allocations: 58.31 kB / 398.3 MB, free: 15.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.3577, allocations: 1.278 MB / 399.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.3577, allocations: 35.92 kB / 399.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005456/0.3583, allocations: 0.6996 MB / 400.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.3584, allocations: 218.1 kB / 400.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.3585, allocations: 8 kB / 400.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3586, allocations: 332.7 kB / 400.9 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004083/0.359, allocations: 230 kB / 401.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004972/0.3595, allocations: 359.8 kB / 401.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.36, allocations: 276.3 kB / 401.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.36, allocations: 2.969 kB / 401.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00155/0.3615, allocations: 0.9861 MB / 402.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3616, allocations: 8.438 kB / 402.7 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-05/0.3617, allocations: 61.41 kB / 402.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004471/0.3621, allocations: 188.3 kB / 403 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/0.3625, allocations: 109.4 kB / 403.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/0.3654, allocations: 2.528 MB / 405.6 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006078/0.366, allocations: 28.03 kB / 405.6 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.275e-05/0.3661, allocations: 31.94 kB / 405.7 MB, free: 9.91 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.0005357/0.3667, allocations: 273.7 kB / 405.9 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.3668, allocations: 177.9 kB / 406.1 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.3688, allocations: 0.9899 MB / 407.1 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3688, allocations: 8 kB / 407.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3688, allocations: 4 kB / 407.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3689, allocations: 3.984 kB / 407.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001241/0.3701, allocations: 0.9172 MB / 408 MB, free: 7.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.991e-05/0.3702, allocations: 56 kB / 408.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.3705, allocations: 81.59 kB / 408.2 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004162/0.3709, allocations: 172.9 kB / 408.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.398e-05/0.371, allocations: 20 kB / 408.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002763/0.3738, allocations: 2.521 MB / 410.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3738, allocations: 0 / 410.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/0.3758, allocations: 1.204 MB / 412.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005262/0.3764, allocations: 254.9 kB / 412.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.3765, allocations: 12 kB / 412.3 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.3769, allocations: 31.92 kB / 412.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.377, allocations: 52.38 kB / 412.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.174e-05/0.3771, allocations: 23.98 kB / 412.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001163/0.3783, allocations: 0.8379 MB / 413.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3783, allocations: 0 / 413.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001092/0.3794, allocations: 387.8 kB / 413.7 MB, free: 1.699 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.002836/0.3822, allocations: 2.071 MB / 415.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.3839, allocations: 0.9343 MB / 416.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3839, allocations: 4 kB / 416.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009694/0.3849, allocations: 0.6434 MB / 417.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.3859, allocations: 206.2 kB / 417.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/0.4021, allocations: 8.542 MB / 426.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.4027, allocations: 1.174 MB / 427.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006443/0.4034, allocations: 187.2 kB / 427.4 MB, free: 3.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005475/0.4039, allocations: 0.5657 MB / 428 MB, free: 2.703 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4039, allocations: 4 kB / 428 MB, free: 2.699 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0452/0.4491, allocations: 27.55 MB / 455.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.4494, allocations: 196.4 kB / 455.7 MB, free: 7.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.082, allocations: 10.31 kB / 455.7 MB, free: 7.086 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)