Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001598, allocations: 181.2 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001553/0.001553, allocations: 94.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.039e-05, allocations: 7.984 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09282/0.09287, allocations: 47.57 MB / 369.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4867, allocations: 77.64 MB / 446.8 MB, free: 15.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.4871, allocations: 77.95 kB / 446.9 MB, free: 15.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0184/0.5056, allocations: 4.113 MB / 451 MB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.5056, allocations: 0 / 451 MB, free: 11.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.5056, allocations: 8 kB / 451 MB, free: 11.96 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009764/0.5066, allocations: 0.4926 MB / 451.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5067, allocations: 12.03 kB / 451.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.689e-05/0.5068, allocations: 55.61 kB / 451.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.134e-05/0.5069, allocations: 31.62 kB / 451.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004729/0.5074, allocations: 256.4 kB / 451.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.5074, allocations: 20.38 kB / 451.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.852e-05/0.5075, allocations: 21.25 kB / 451.9 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.508, allocations: 202.6 kB / 452.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.5081, allocations: 0 / 452.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.5081, allocations: 11.31 kB / 452.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.5081, allocations: 4 kB / 452.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.5086, allocations: 157.1 kB / 452.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002509/0.5111, allocations: 0.9672 MB / 453.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.5118, allocations: 167.3 kB / 453.4 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003752/0.5122, allocations: 115.3 kB / 453.5 MB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.5122, allocations: 3.938 kB / 453.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5123, allocations: 41.38 kB / 453.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.856e-06/0.5123, allocations: 0 / 453.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009979/0.5133, allocations: 229.2 kB / 453.8 MB, free: 9.457 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.5134, allocations: 55.36 kB / 453.8 MB, free: 9.391 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.5137, allocations: 203.6 kB / 454 MB, free: 9.215 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.5137, allocations: 29.2 kB / 454.1 MB, free: 9.184 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.5139, allocations: 237.9 kB / 454.3 MB, free: 8.969 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.159e-05/0.514, allocations: 41.61 kB / 454.3 MB, free: 8.934 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.388e-05/0.514, allocations: 7.75 kB / 454.4 MB, free: 8.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5141, allocations: 322.3 kB / 454.7 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.5143, allocations: 46.25 kB / 454.7 MB, free: 8.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.5145, allocations: 86.77 kB / 454.8 MB, free: 8.496 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.5147, allocations: 69.45 kB / 454.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.5147, allocations: 0 / 454.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001039/0.5158, allocations: 284.9 kB / 455.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003094/0.5161, allocations: 0.6138 MB / 455.8 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.5161, allocations: 4 kB / 455.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003706/0.5165, allocations: 49.28 kB / 455.8 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.5168, allocations: 39.91 kB / 455.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001238/0.5181, allocations: 0.6661 MB / 456.5 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.5184, allocations: 30.89 kB / 456.5 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.5184, allocations: 4 kB / 456.5 MB, free: 6.785 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.5185, allocations: 4 kB / 456.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004581/0.5189, allocations: 171 kB / 456.7 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5189, allocations: 4 kB / 456.7 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001107/0.5191, allocations: 24.03 kB / 456.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.5194, allocations: 43.05 kB / 456.8 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001324/0.5207, allocations: 1.307 MB / 458.1 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.5209, allocations: 12.02 kB / 458.1 MB, free: 5.195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.521, allocations: 15.39 kB / 458.1 MB, free: 5.184 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.5211, allocations: 115.7 kB / 458.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.089e-05/0.5212, allocations: 19.8 kB / 458.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.229e-05/0.5213, allocations: 27.7 kB / 458.3 MB, free: 5.031 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5213, allocations: 4 kB / 458.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5213, allocations: 0 / 458.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.5213, allocations: 0 / 458.3 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.5228, allocations: 0.6003 MB / 458.9 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.5228, allocations: 4 kB / 458.9 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.5231, allocations: 23.92 kB / 458.9 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002461/0.5233, allocations: 53.84 kB / 459 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.5234, allocations: 7.922 kB / 459 MB, free: 4.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003274/0.5266, allocations: 1.75 MB / 460.7 MB, free: 2.637 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5267, allocations: 0 / 460.7 MB, free: 2.637 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.5278, allocations: 393.8 kB / 461.1 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.5279, allocations: 104.7 kB / 461.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.528, allocations: 8.062 kB / 461.2 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.5283, allocations: 24.05 kB / 461.2 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.5284, allocations: 15.36 kB / 461.3 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.5284, allocations: 4 kB / 461.3 MB, free: 2.133 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002231/0.5286, allocations: 162.1 kB / 461.4 MB, free: 2 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5286, allocations: 0 / 461.4 MB, free: 2 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006939/0.5293, allocations: 115.2 kB / 461.5 MB, free: 1.895 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/0.5308, allocations: 0.9229 MB / 462.5 MB, free: 1.012 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.5323, allocations: 408 kB / 462.9 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.5323, allocations: 8 kB / 462.9 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000906/0.5332, allocations: 261.6 kB / 463.1 MB, free: 416 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.5336, allocations: 32.19 kB / 463.1 MB, free: 384 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.5377, allocations: 0.7574 MB / 463.9 MB, free: 15.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.5382, allocations: 0.7523 MB / 464.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.5384, allocations: 63.42 kB / 464.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of SimCode: time 1.133e-06/0.5384, allocations: 0 / 464.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.27, allocations: 4.31 MB / 469 MB, free: 10.43 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.mat does not exist to compare? outputFormat=mat