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.001303/0.001303, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.23 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09399, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007599/0.1016, allocations: 7.516 MB / 365.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1767/0.2784, allocations: 10.73 MB / 375.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001429/0.2799, allocations: 37.44 kB / 375.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.282, allocations: 0.7121 MB / 376.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004312/0.2863, allocations: 1.185 MB / 377.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002223/0.2885, allocations: 0.6778 MB / 378.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004224/0.2928, allocations: 2.556 MB / 381 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000676/0.2935, allocations: 285.3 kB / 381.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.2946, allocations: 482.4 kB / 381.7 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005951/0.2952, allocations: 0.5313 MB / 382.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.2953, allocations: 56.44 kB / 382.3 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002655/0.298, allocations: 0.7728 MB / 383.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.2983, allocations: 186.8 kB / 383.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.2993, allocations: 0.6808 MB / 384 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003596/0.3029, allocations: 1.924 MB / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3029, allocations: 1.031 kB / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3029, allocations: 0 / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.246e-05/0.303, allocations: 0 / 385.9 MB, free: 6.109 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.003371/0.3063, allocations: 1.981 MB / 387.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3064, allocations: 9.375 kB / 387.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.3065, allocations: 92.03 kB / 388 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000236/0.3067, allocations: 202.4 kB / 388.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.3084, allocations: 1.34 MB / 389.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.3085, allocations: 31 kB / 389.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.471e-05/0.3086, allocations: 51.62 kB / 389.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008408/0.3094, allocations: 0.514 MB / 390.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3094, allocations: 0 / 390.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.3095, allocations: 15.38 kB / 390.1 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.3095, allocations: 18.45 kB / 390.1 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008725/0.3104, allocations: 475.9 kB / 390.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.3131, allocations: 2.105 MB / 392.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009296/0.314, allocations: 0.7068 MB / 393.4 MB, free: 1.664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007318/0.3147, allocations: 0.5092 MB / 393.9 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006073/0.3208, allocations: 4.909 MB / 398.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006179/0.3215, allocations: 307.8 kB / 399.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.635e-06/0.3215, allocations: 0 / 399.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.0054/0.3269, allocations: 2.416 MB / 401.5 MB, free: 11.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.327, allocations: 59.16 kB / 401.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.3287, allocations: 1.284 MB / 402.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.3287, allocations: 35.92 kB / 402.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005879/0.3293, allocations: 0.6942 MB / 403.6 MB, free: 9.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.3295, allocations: 227.5 kB / 403.8 MB, free: 9.598 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3297, allocations: 119.6 kB / 404 MB, free: 9.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3298, allocations: 331.7 kB / 404.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.3303, allocations: 214.5 kB / 404.5 MB, free: 9.102 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005226/0.3308, allocations: 361.1 kB / 404.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/0.3318, allocations: 0.6118 MB / 405.5 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3318, allocations: 4 kB / 405.5 MB, free: 8.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001735/0.3336, allocations: 0.9693 MB / 406.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.3336, allocations: 11.28 kB / 406.4 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.335e-05/0.3337, allocations: 60 kB / 406.5 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004923/0.3342, allocations: 189.2 kB / 406.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004897/0.3347, allocations: 112.2 kB / 406.8 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003419/0.3381, allocations: 2.762 MB / 409.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007259/0.3389, allocations: 28.03 kB / 409.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.179e-05/0.339, allocations: 28 kB / 409.6 MB, free: 4.047 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 (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.0005131/0.3395, allocations: 277.7 kB / 409.9 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002939/0.3398, allocations: 181.8 kB / 410.1 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002072/0.3419, allocations: 0.9662 MB / 411 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.3419, allocations: 11.98 kB / 411 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3419, allocations: 4 kB / 411 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3419, allocations: 3.984 kB / 411 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.3433, allocations: 0.9069 MB / 412 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.537e-05/0.3434, allocations: 56 kB / 412 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003317/0.3438, allocations: 75.81 kB / 412.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004521/0.3442, allocations: 179.6 kB / 412.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.287e-05/0.3443, allocations: 20 kB / 412.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/0.3475, allocations: 2.752 MB / 415 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3475, allocations: 4 kB / 415 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.3497, allocations: 1.188 MB / 416.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005337/0.3502, allocations: 243 kB / 416.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002858/0.3505, allocations: 15.98 kB / 416.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.351, allocations: 31.86 kB / 416.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.3511, allocations: 52.38 kB / 416.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.482e-05/0.3512, allocations: 19.98 kB / 416.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.3523, allocations: 0.8535 MB / 417.4 MB, free: 12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3523, allocations: 0 / 417.4 MB, free: 12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001109/0.3534, allocations: 387.8 kB / 417.8 MB, free: 11.62 MB / 334.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.003061/0.3565, allocations: 2.089 MB / 419.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.3584, allocations: 0.9252 MB / 420.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3584, allocations: 0 / 420.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.3595, allocations: 0.6506 MB / 421.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.3606, allocations: 205.1 kB / 421.7 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.3744, allocations: 10.45 MB / 432.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.3751, allocations: 1.181 MB / 433.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006134/0.3758, allocations: 183.2 kB / 433.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005796/0.3763, allocations: 0.5657 MB / 434.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3764, allocations: 0 / 434.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06204/0.4384, allocations: 29.32 MB / 463.4 MB, free: 13.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.33, allocations: 8.406 kB / 463.4 MB, free: 13.39 MB / 382.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)