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.001436/0.001435, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.00117/0.00117, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.324/1.324, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 46.48 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08775/0.08884, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008031/0.0969, allocations: 7.498 MB / 357.7 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01389/0.1108, allocations: 10.71 MB / 368.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.1127, allocations: 39.69 kB / 368.4 MB, free: 2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.1151, allocations: 0.7026 MB / 369.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.1195, allocations: 1.184 MB / 370.3 MB, free: 100 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1474/0.2669, allocations: 0.6652 MB / 371 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003993/0.271, allocations: 2.527 MB / 373.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004626/0.2714, allocations: 282.3 kB / 373.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007047/0.2722, allocations: 489.6 kB / 374.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.2727, allocations: 0.5297 MB / 374.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.2728, allocations: 59.78 kB / 374.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.2745, allocations: 0.7711 MB / 375.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.2747, allocations: 184.8 kB / 375.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005576/0.2752, allocations: 0.6761 MB / 376.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002076/0.2773, allocations: 1.932 MB / 378.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2773, allocations: 0 / 378.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2774, allocations: 0 / 378.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.2774, allocations: 0 / 378.4 MB, free: 9.555 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.002573/0.28, allocations: 1.974 MB / 380.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.28, allocations: 12.89 kB / 380.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.353e-05/0.2801, allocations: 88.72 kB / 380.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.2803, allocations: 198.5 kB / 380.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.2821, allocations: 1.348 MB / 382 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.2822, allocations: 29.69 kB / 382 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.025e-05/0.2822, allocations: 51.59 kB / 382.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009369/0.2832, allocations: 0.5096 MB / 382.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2832, allocations: 4.906 kB / 382.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.867e-05/0.2833, allocations: 15.19 kB / 382.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.2833, allocations: 18.67 kB / 382.6 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009172/0.2842, allocations: 477.7 kB / 383.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/0.2871, allocations: 2.097 MB / 385.2 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009327/0.288, allocations: 0.7034 MB / 385.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007098/0.2887, allocations: 0.5206 MB / 386.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007052/0.2958, allocations: 6.52 MB / 392.9 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005511/0.2964, allocations: 306.8 kB / 393.2 MB, free: 15.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 3.246e-06/0.2964, allocations: 0 / 393.2 MB, free: 15.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003741/0.3001, allocations: 1.953 MB / 395.2 MB, free: 14.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.3002, allocations: 68.56 kB / 395.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.302, allocations: 1.29 MB / 396.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.676e-05/0.3021, allocations: 37.23 kB / 396.6 MB, free: 14.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006058/0.3027, allocations: 0.7156 MB / 397.3 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.3029, allocations: 203.6 kB / 397.5 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.3031, allocations: 123 kB / 397.6 MB, free: 13.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3032, allocations: 332.8 kB / 397.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.3036, allocations: 200.6 kB / 398.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004708/0.3041, allocations: 361.2 kB / 398.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008879/0.305, allocations: 0.6006 MB / 399.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.305, allocations: 0 / 399.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001744/0.3067, allocations: 0.9167 MB / 400 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.3068, allocations: 13.62 kB / 400 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-05/0.3069, allocations: 58.34 kB / 400.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003925/0.3073, allocations: 155.7 kB / 400.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.3077, allocations: 114.3 kB / 400.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.3104, allocations: 2.517 MB / 402.9 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007844/0.3112, allocations: 28.48 kB / 402.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.3113, allocations: 34.69 kB / 402.9 MB, free: 9.383 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 (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 (57): * Single equations (assignments): 54 * 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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004928/0.3118, allocations: 275.2 kB / 403.2 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.312, allocations: 185.4 kB / 403.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.3139, allocations: 0.8844 MB / 404.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.3139, allocations: 7.984 kB / 404.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3139, allocations: 4 kB / 404.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3139, allocations: 3.938 kB / 404.3 MB, free: 8.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.315, allocations: 0.8667 MB / 405.1 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-05/0.3151, allocations: 48 kB / 405.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.3154, allocations: 70.98 kB / 405.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003456/0.3158, allocations: 148.7 kB / 405.4 MB, free: 6.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.3158, allocations: 16 kB / 405.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.3184, allocations: 2.506 MB / 407.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3184, allocations: 0 / 407.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.3202, allocations: 1.066 MB / 409 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004567/0.3207, allocations: 250.9 kB / 409.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.321, allocations: 8 kB / 409.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.3215, allocations: 16.86 kB / 409.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3216, allocations: 48.38 kB / 409.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/0.3217, allocations: 24 kB / 409.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.323, allocations: 0.8578 MB / 410.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.323, allocations: 0 / 410.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3241, allocations: 379.8 kB / 410.6 MB, free: 1.68 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 (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,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002967/0.327, allocations: 1.971 MB / 412.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.3288, allocations: 0.8655 MB / 413.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3288, allocations: 0 / 413.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.3299, allocations: 0.5819 MB / 414 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.3312, allocations: 208.2 kB / 414.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01612/0.3473, allocations: 10.32 MB / 424.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007157/0.3481, allocations: 1.17 MB / 425.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006321/0.3487, allocations: 183.2 kB / 425.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.3493, allocations: 0.5764 MB / 426.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3493, allocations: 0 / 426.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06151/0.4108, allocations: 28.59 MB / 455 MB, free: 4.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12, allocations: 11.09 kB / 455 MB, free: 4.773 MB / 366.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/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)