Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 199.9 kB / 17.38 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 226.5 MB / 244.7 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007854/0.0007854, allocations: 101.3 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002075/0.0002076, allocations: 7.984 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1727, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.004041/0.1768, allocations: 6.587 MB / 414.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008156/0.185, allocations: 9.832 MB / 424.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007464/0.1858, allocations: 39.69 kB / 424.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.1871, allocations: 0.5477 MB / 425.1 MB, free: 10.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002452/0.1896, allocations: 0.9198 MB / 426 MB, free: 9.707 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.1908, allocations: 454.9 kB / 426.5 MB, free: 9.262 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.1934, allocations: 2.374 MB / 428.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.1937, allocations: 260.3 kB / 429.1 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003307/0.1941, allocations: 429.8 kB / 429.5 MB, free: 6.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.1944, allocations: 492.9 kB / 430 MB, free: 5.695 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.879e-05/0.1945, allocations: 32 kB / 430.1 MB, free: 5.664 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1957, allocations: 0.6985 MB / 430.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.406e-05/0.1958, allocations: 151 kB / 430.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.1961, allocations: 0.6425 MB / 431.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000831/0.197, allocations: 1.394 MB / 432.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.197, allocations: 0 / 432.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.197, allocations: 0 / 432.9 MB, free: 2.766 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.197, allocations: 0 / 432.9 MB, free: 2.766 MB / 298.7 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.001838/0.1989, allocations: 1.764 MB / 434.7 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1989, allocations: 8.031 kB / 434.7 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.219e-05/0.199, allocations: 90.69 kB / 434.8 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.1991, allocations: 202.6 kB / 435 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2006, allocations: 1.341 MB / 436.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.2006, allocations: 33 kB / 436.4 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.2007, allocations: 43.91 kB / 436.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008824/0.2016, allocations: 0.5236 MB / 436.9 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2016, allocations: 3.938 kB / 436.9 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.2016, allocations: 20 kB / 437 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.2017, allocations: 19.98 kB / 437 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008849/0.2026, allocations: 496 kB / 437.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00275/0.2053, allocations: 2.108 MB / 439.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009274/0.2063, allocations: 0.7262 MB / 440.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007219/0.207, allocations: 0.5252 MB / 440.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005746/0.2128, allocations: 4.908 MB / 445.7 MB, free: 5.055 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005851/0.2134, allocations: 321.9 kB / 446 MB, free: 4.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 2.485e-06/0.2134, allocations: 0 / 446 MB, free: 4.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.004639/0.218, allocations: 2.464 MB / 448.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.2181, allocations: 55.84 kB / 448.6 MB, free: 2.121 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.2195, allocations: 1.276 MB / 449.8 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.2195, allocations: 37.7 kB / 449.9 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005335/0.2201, allocations: 0.6957 MB / 450.6 MB, free: 108 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.2203, allocations: 224.7 kB / 450.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.2203, allocations: 8 kB / 450.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2204, allocations: 334 kB / 451.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.2209, allocations: 225.5 kB / 451.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005116/0.2214, allocations: 372.5 kB / 451.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.2224, allocations: 0.6268 MB / 452.3 MB, free: 14.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.83e-06/0.2224, allocations: 3.938 kB / 452.3 MB, free: 14.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001668/0.2241, allocations: 0.9777 MB / 453.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.2241, allocations: 8.031 kB / 453.3 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-05/0.2242, allocations: 68 kB / 453.4 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004564/0.2247, allocations: 176.7 kB / 453.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.2251, allocations: 111.8 kB / 453.7 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.2281, allocations: 2.522 MB / 456.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.2286, allocations: 39.98 kB / 456.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/0.2287, allocations: 28 kB / 456.3 MB, free: 10.14 MB / 330.7 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.0004407/0.2291, allocations: 272.3 kB / 456.5 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.2293, allocations: 185.8 kB / 456.7 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.2313, allocations: 0.9875 MB / 457.7 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.2314, allocations: 11.94 kB / 457.7 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2314, allocations: 4 kB / 457.7 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2314, allocations: 3.984 kB / 457.7 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.2324, allocations: 0.9095 MB / 458.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.003e-05/0.2325, allocations: 60 kB / 458.7 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.2328, allocations: 71.89 kB / 458.8 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000422/0.2332, allocations: 175.2 kB / 458.9 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.683e-05/0.2333, allocations: 19.98 kB / 458.9 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002908/0.2362, allocations: 2.527 MB / 461.5 MB, free: 4.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.2362, allocations: 3.938 kB / 461.5 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002058/0.2383, allocations: 1.201 MB / 462.7 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.2387, allocations: 258.9 kB / 462.9 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.2388, allocations: 12 kB / 462.9 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003635/0.2392, allocations: 19.98 kB / 463 MB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.2394, allocations: 52.36 kB / 463 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.2394, allocations: 27.98 kB / 463 MB, free: 3.117 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001043/0.2405, allocations: 0.834 MB / 463.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2405, allocations: 4 kB / 463.9 MB, free: 2.289 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009074/0.2414, allocations: 387.8 kB / 464.3 MB, free: 1.91 MB / 330.7 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.002998/0.2444, allocations: 2.103 MB / 466.4 MB, free: 15.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.2461, allocations: 0.9446 MB / 467.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2461, allocations: 7.938 kB / 467.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.2472, allocations: 0.6471 MB / 468 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.2482, allocations: 206.8 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/0.264, allocations: 8.57 MB / 476.7 MB, free: 4.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006903/0.2648, allocations: 1.174 MB / 477.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005932/0.2654, allocations: 0.5735 MB / 478.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2654, allocations: 0 / 478.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.026/4.291, allocations: 28.5 MB / 0.4951 GB, free: 6.418 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1)