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.0009449/0.0009451, allocations: 94.41 kB / 16.95 MB, free: 5.988 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.001222/0.001222, allocations: 178 kB / 17.84 MB, free: 5.645 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.596/1.596, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004915/0.0004916, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1063, allocations: 47.58 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007176/0.1135, allocations: 6.431 MB / 334.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.1259, allocations: 9.498 MB / 344.4 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.1273, allocations: 35.69 kB / 344.4 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.1291, allocations: 0.5321 MB / 344.9 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003605/0.1328, allocations: 0.9041 MB / 345.8 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.1347, allocations: 454.8 kB / 346.3 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004442/0.1392, allocations: 2.295 MB / 348.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.1399, allocations: 259.1 kB / 348.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008204/0.1408, allocations: 398 kB / 349.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008566/0.1416, allocations: 481 kB / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.1418, allocations: 36 kB / 349.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002023/0.1438, allocations: 0.6284 MB / 350.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.1441, allocations: 151 kB / 350.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004981/0.1446, allocations: 320.8 kB / 350.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.1463, allocations: 1.387 MB / 352.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.1463, allocations: 0 / 352.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1463, allocations: 0 / 352.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.11e-05/0.1464, allocations: 0 / 352.2 MB, free: 12.1 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.003043/0.1495, allocations: 1.787 MB / 354 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1495, allocations: 16.03 kB / 354 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/0.1497, allocations: 90.45 kB / 354.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003005/0.15, allocations: 201.6 kB / 354.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.1521, allocations: 1.26 MB / 355.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.1521, allocations: 33 kB / 355.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.1522, allocations: 47.91 kB / 355.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009717/0.1532, allocations: 0.5158 MB / 356.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1532, allocations: 4 kB / 356.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.1533, allocations: 15.98 kB / 356.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.1533, allocations: 19.95 kB / 356.2 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009338/0.1543, allocations: 496 kB / 356.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.1576, allocations: 2.097 MB / 358.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.1586, allocations: 0.7315 MB / 359.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007331/0.1594, allocations: 0.5251 MB / 360 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008529/0.1679, allocations: 6.536 MB / 366.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006043/0.1685, allocations: 302.5 kB / 366.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=55): time 2.855e-06/0.1686, allocations: 0 / 366.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003919/0.1725, allocations: 2.007 MB / 368.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.1725, allocations: 55.84 kB / 368.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/0.1743, allocations: 1.28 MB / 370.2 MB, free: 8.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.1744, allocations: 29.7 kB / 370.2 MB, free: 8.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007134/0.1751, allocations: 0.715 MB / 370.9 MB, free: 8.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.1753, allocations: 209 kB / 371.1 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.943e-05/0.1753, allocations: 8 kB / 371.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.1755, allocations: 334 kB / 371.5 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/0.176, allocations: 209.5 kB / 371.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.1766, allocations: 372.3 kB / 372 MB, free: 6.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005311/0.1771, allocations: 258.8 kB / 372.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1771, allocations: 0 / 372.3 MB, free: 6.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001896/0.179, allocations: 0.9342 MB / 373.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/0.1791, allocations: 6.719 kB / 373.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001059/0.1792, allocations: 60 kB / 373.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000414/0.1796, allocations: 152.8 kB / 373.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.18, allocations: 123.8 kB / 373.6 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002972/0.183, allocations: 2.302 MB / 375.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005723/0.1836, allocations: 35.98 kB / 375.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-05/0.1837, allocations: 28 kB / 375.9 MB, free: 2.82 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.000501/0.1842, allocations: 273.7 kB / 376.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.1844, allocations: 181.8 kB / 376.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00195/0.1864, allocations: 0.9175 MB / 377.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/0.1864, allocations: 8 kB / 377.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1864, allocations: 0 / 377.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.1865, allocations: 3.984 kB / 377.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.1876, allocations: 0.8709 MB / 378.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.077e-05/0.1877, allocations: 52 kB / 378.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.188, allocations: 71.89 kB / 378.3 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003516/0.1884, allocations: 148.7 kB / 378.4 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.1884, allocations: 20 kB / 378.5 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2282/0.4166, allocations: 2.271 MB / 380.7 MB, free: 51.76 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4167, allocations: 2.281 kB / 380.7 MB, free: 51.76 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.4195, allocations: 1.099 MB / 381.8 MB, free: 51.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/0.4199, allocations: 245.2 kB / 382.1 MB, free: 51.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002527/0.4202, allocations: 10.27 kB / 382.1 MB, free: 51.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.4208, allocations: 26.23 kB / 382.1 MB, free: 51.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.4209, allocations: 45.42 kB / 382.2 MB, free: 51.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.53e-05/0.421, allocations: 27.8 kB / 382.2 MB, free: 51.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002064/0.4231, allocations: 0.8434 MB / 383 MB, free: 51.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4231, allocations: 0 / 383 MB, free: 51.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001607/0.4247, allocations: 375.5 kB / 383.4 MB, free: 51.41 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.003578/0.4283, allocations: 1.966 MB / 385.4 MB, free: 50.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.4302, allocations: 0.8604 MB / 386.2 MB, free: 50 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4302, allocations: 0 / 386.2 MB, free: 50 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.4312, allocations: 0.6036 MB / 386.8 MB, free: 49.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.4324, allocations: 179.1 kB / 387 MB, free: 49.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/0.4535, allocations: 8.424 MB / 395.4 MB, free: 44.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009281/0.4544, allocations: 1.176 MB / 396.6 MB, free: 44.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006971/0.4552, allocations: 186.5 kB / 396.8 MB, free: 44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006061/0.4558, allocations: 0.5734 MB / 397.4 MB, free: 43.54 MB / 318.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4558, allocations: 3.938 kB / 397.4 MB, free: 43.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04662/0.5024, allocations: 26.82 MB / 424.2 MB, free: 19.02 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.5027, allocations: 208 kB / 424.4 MB, free: 18.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.791/3.294, allocations: 3.938 kB / 424.4 MB, free: 18.77 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