Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_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.001141/0.001141, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001207/0.001207, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 55.92 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.081/0.08214, allocations: 46.64 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006777/0.08895, allocations: 7.343 MB / 334.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.09937, allocations: 10.37 MB / 345.1 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008139/0.1002, allocations: 39.69 kB / 345.1 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001476/0.1017, allocations: 0.6909 MB / 345.8 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002821/0.1046, allocations: 1.18 MB / 347 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001576/0.1061, allocations: 0.6662 MB / 347.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.1092, allocations: 2.471 MB / 350.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003819/0.1096, allocations: 283.9 kB / 350.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.1101, allocations: 461.7 kB / 350.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005003/0.1106, allocations: 0.524 MB / 351.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.808e-05/0.1107, allocations: 56 kB / 351.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.1121, allocations: 0.7064 MB / 352.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1122, allocations: 178.8 kB / 352.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004986/0.1127, allocations: 0.6754 MB / 353 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001716/0.1145, allocations: 1.926 MB / 354.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1145, allocations: 0 / 354.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1145, allocations: 3.938 kB / 354.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.1145, allocations: 0 / 354.9 MB, free: 8.66 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.002463/0.117, allocations: 1.977 MB / 356.9 MB, free: 6.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.117, allocations: 16.03 kB / 356.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.957e-05/0.1171, allocations: 90.64 kB / 357 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.1173, allocations: 198.6 kB / 357.2 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.1189, allocations: 1.344 MB / 358.6 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.1189, allocations: 37 kB / 358.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.119, allocations: 40 kB / 358.6 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.1198, allocations: 0.508 MB / 359.1 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1198, allocations: 4 kB / 359.1 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.1199, allocations: 16 kB / 359.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.1199, allocations: 19.98 kB / 359.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008591/0.1208, allocations: 476 kB / 359.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.1234, allocations: 2.104 MB / 361.8 MB, free: 1.641 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009759/0.1244, allocations: 0.7119 MB / 362.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000662/0.1251, allocations: 0.5057 MB / 363 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007049/0.1321, allocations: 6.517 MB / 369.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005174/0.1327, allocations: 290.5 kB / 369.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.565e-06/0.1327, allocations: 3.938 kB / 369.8 MB, free: 8.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003384/0.1361, allocations: 1.956 MB / 371.7 MB, free: 6.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1361, allocations: 59.84 kB / 371.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.1375, allocations: 1.3 MB / 373.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.517e-05/0.1375, allocations: 33.7 kB / 373.1 MB, free: 5.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005132/0.1381, allocations: 0.7112 MB / 373.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.1382, allocations: 205 kB / 374 MB, free: 4.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.1384, allocations: 118.2 kB / 374.1 MB, free: 4.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1385, allocations: 334 kB / 374.5 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.1389, allocations: 205.5 kB / 374.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.1394, allocations: 355.8 kB / 375 MB, free: 3.164 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002088/0.1415, allocations: 1.131 MB / 376.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1415, allocations: 3.938 kB / 376.2 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001429/0.1429, allocations: 0.9142 MB / 377.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.143, allocations: 8.625 kB / 377.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.359e-05/0.1431, allocations: 67.98 kB / 377.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003749/0.1434, allocations: 160 kB / 377.3 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004232/0.1439, allocations: 107.9 kB / 377.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1336/0.2775, allocations: 2.516 MB / 379.9 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005603/0.2781, allocations: 25.05 kB / 379.9 MB, free: 52.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.706e-05/0.2782, allocations: 35.38 kB / 380 MB, free: 52.45 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real 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.0004467/0.2786, allocations: 280.5 kB / 380.3 MB, free: 52.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.2788, allocations: 182.5 kB / 380.4 MB, free: 52.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/0.2807, allocations: 0.8802 MB / 381.3 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2808, allocations: 12.25 kB / 381.3 MB, free: 52.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2808, allocations: 6.625 kB / 381.3 MB, free: 52.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.2808, allocations: 2.531 kB / 381.3 MB, free: 52.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008436/0.2816, allocations: 0.8645 MB / 382.2 MB, free: 51.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-05/0.2817, allocations: 55.05 kB / 382.3 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002837/0.282, allocations: 57.89 kB / 382.3 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003319/0.2823, allocations: 151.7 kB / 382.5 MB, free: 51.81 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/0.2824, allocations: 19.31 kB / 382.5 MB, free: 51.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002132/0.2845, allocations: 2.506 MB / 385 MB, free: 49.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2845, allocations: 0 / 385 MB, free: 49.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.2862, allocations: 1.066 MB / 386.1 MB, free: 49.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.2865, allocations: 250.4 kB / 386.3 MB, free: 49.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.2866, allocations: 15.94 kB / 386.3 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/0.2869, allocations: 17.12 kB / 386.3 MB, free: 49.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2871, allocations: 48.06 kB / 386.4 MB, free: 49.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.2871, allocations: 23.23 kB / 386.4 MB, free: 49.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001007/0.2881, allocations: 0.8593 MB / 387.3 MB, free: 48.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2881, allocations: 0 / 387.3 MB, free: 48.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008483/0.289, allocations: 380.3 kB / 387.6 MB, free: 48.88 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.002404/0.2914, allocations: 1.961 MB / 389.6 MB, free: 47.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.293, allocations: 0.8606 MB / 390.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2931, allocations: 0 / 390.4 MB, free: 47.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008742/0.2939, allocations: 0.5772 MB / 391 MB, free: 47.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006395/0.2946, allocations: 182.3 kB / 391.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.3053, allocations: 10.3 MB / 401.5 MB, free: 41.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004808/0.3058, allocations: 1.173 MB / 402.7 MB, free: 40.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005512/0.3063, allocations: 185.3 kB / 402.9 MB, free: 39.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/0.3068, allocations: 0.5657 MB / 403.4 MB, free: 39.39 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3068, allocations: 0 / 403.4 MB, free: 39.39 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05074/0.3575, allocations: 28.51 MB / 431.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.811/10.17, allocations: 8 kB / 431.9 MB, free: 10.78 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)