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.00107/0.00107, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001112/0.001112, allocations: 179.3 kB / 17.82 MB, free: 5.652 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.355/1.355, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004526/0.0004527, allocations: 15.98 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0873/0.08776, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006202/0.09402, allocations: 5.992 MB / 334.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1053, allocations: 9.092 MB / 343.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008151/0.1062, allocations: 39.69 kB / 343.5 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.1077, allocations: 0.5715 MB / 344.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002805/0.1105, allocations: 1.028 MB / 345.1 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1117, allocations: 459.3 kB / 345.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003426/0.1151, allocations: 2.377 MB / 348 MB, free: 404 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004136/0.1156, allocations: 251.2 kB / 348.2 MB, free: 128 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000502/0.1161, allocations: 394.1 kB / 348.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004623/0.1166, allocations: 481 kB / 349.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.537e-05/0.1166, allocations: 32 kB / 349.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.1181, allocations: 0.6675 MB / 349.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1182, allocations: 155 kB / 349.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.1185, allocations: 316.8 kB / 350.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.1197, allocations: 1.36 MB / 351.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1197, allocations: 0 / 351.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1197, allocations: 4 kB / 351.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.1197, allocations: 4 kB / 351.6 MB, free: 12.72 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.002436/0.1222, allocations: 1.772 MB / 353.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1222, allocations: 12.03 kB / 353.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.77e-05/0.1223, allocations: 86.52 kB / 353.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.1225, allocations: 201.6 kB / 353.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.1243, allocations: 1.264 MB / 354.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.1243, allocations: 29 kB / 355 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.747e-05/0.1244, allocations: 51.91 kB / 355 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.1253, allocations: 0.5158 MB / 355.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1253, allocations: 0 / 355.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.1253, allocations: 16 kB / 355.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.1254, allocations: 23.94 kB / 355.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008914/0.1263, allocations: 496.1 kB / 356 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.1291, allocations: 2.104 MB / 358.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009435/0.1301, allocations: 0.7199 MB / 358.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007706/0.1378, allocations: 6.556 MB / 365.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005695/0.1384, allocations: 306.5 kB / 365.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.505e-06/0.1384, allocations: 0 / 365.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003594/0.142, allocations: 2.174 MB / 367.9 MB, free: 11.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.1421, allocations: 55.84 kB / 367.9 MB, free: 11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.1436, allocations: 1.284 MB / 369.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.1436, allocations: 33.7 kB / 369.3 MB, free: 9.684 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005746/0.1442, allocations: 0.7072 MB / 370 MB, free: 8.973 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.1444, allocations: 213 kB / 370.2 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.1444, allocations: 12 kB / 370.2 MB, free: 8.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1445, allocations: 330 kB / 370.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.1449, allocations: 205.5 kB / 370.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.1454, allocations: 368.3 kB / 371.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004681/0.1459, allocations: 258.8 kB / 371.3 MB, free: 7.551 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.1459, allocations: 4 kB / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001536/0.1475, allocations: 0.9222 MB / 372.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.1475, allocations: 11.94 kB / 372.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-05/0.1476, allocations: 63.94 kB / 372.3 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004043/0.148, allocations: 153.2 kB / 372.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004476/0.1485, allocations: 119.8 kB / 372.6 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002677/0.1511, allocations: 2.338 MB / 374.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004649/0.1516, allocations: 32.03 kB / 375 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.48e-05/0.1517, allocations: 32 kB / 375 MB, free: 3.73 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 ($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 (57): * Single equations (assignments): 54 * 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,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005401/0.1522, allocations: 285.5 kB / 375.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.1524, allocations: 185.8 kB / 375.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.1543, allocations: 0.9176 MB / 376.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.1543, allocations: 4 kB / 376.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.1544, allocations: 7.953 kB / 376.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1544, allocations: 3.984 kB / 376.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.1554, allocations: 0.871 MB / 377.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.574e-05/0.1554, allocations: 51.98 kB / 377.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.1558, allocations: 67.94 kB / 377.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000363/0.1561, allocations: 155.9 kB / 377.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/0.1562, allocations: 23.95 kB / 377.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1721/0.3283, allocations: 2.297 MB / 379.8 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3283, allocations: 1.469 kB / 379.9 MB, free: 51.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3305, allocations: 1.094 MB / 380.9 MB, free: 51.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.331, allocations: 249.5 kB / 381.2 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.3311, allocations: 14.58 kB / 381.2 MB, free: 51.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.3315, allocations: 31.91 kB / 381.2 MB, free: 51.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.3317, allocations: 44.33 kB / 381.3 MB, free: 51.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/0.3317, allocations: 22.92 kB / 381.3 MB, free: 51.58 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.333, allocations: 0.8439 MB / 382.1 MB, free: 51.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3331, allocations: 0 / 382.1 MB, free: 51.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009928/0.3341, allocations: 373.2 kB / 382.5 MB, free: 51.47 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 (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%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002633/0.3367, allocations: 1.968 MB / 384.5 MB, free: 50.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.3383, allocations: 0.8643 MB / 385.3 MB, free: 50.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3383, allocations: 0 / 385.3 MB, free: 50.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009634/0.3393, allocations: 0.5913 MB / 385.9 MB, free: 50.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.3399, allocations: 172.2 kB / 386.1 MB, free: 50.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.3555, allocations: 11.5 MB / 397.6 MB, free: 42.21 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007707/0.3563, allocations: 1.201 MB / 398.8 MB, free: 41.47 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000616/0.3569, allocations: 189.1 kB / 399 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004495/0.3574, allocations: 0.5675 MB / 399.6 MB, free: 40.97 MB / 318.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3574, allocations: 1.375 kB / 399.6 MB, free: 40.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.3958, allocations: 26.51 MB / 426.1 MB, free: 17.11 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.396, allocations: 199 kB / 426.3 MB, free: 16.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/2.743, allocations: 0 / 426.3 MB, free: 16.87 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat