Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001545/0.001545, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.953/1.953, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001147/0.001146, allocations: 93.53 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003882/0.0003886, allocations: 16 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.33, allocations: 47.56 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1306/0.4606, allocations: 79.26 MB / 453.9 MB, free: 1.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.461, allocations: 75.97 kB / 454 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02745/0.4884, allocations: 5.497 MB / 459.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4885, allocations: 0 / 459.5 MB, free: 11.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.564e-05/0.4885, allocations: 8 kB / 459.5 MB, free: 11.79 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001676/0.4902, allocations: 0.5833 MB / 460.1 MB, free: 11.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.4903, allocations: 12.03 kB / 460.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.4904, allocations: 58.53 kB / 460.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.828e-05/0.4905, allocations: 23.72 kB / 460.2 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000496/0.491, allocations: 267.6 kB / 460.4 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.4911, allocations: 16.38 kB / 460.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/0.4911, allocations: 16 kB / 460.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009943/0.4921, allocations: 252.5 kB / 460.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4922, allocations: 4 kB / 460.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.4922, allocations: 4 kB / 460.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.4922, allocations: 7.984 kB / 460.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.4937, allocations: 279.2 kB / 461 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002569/0.4963, allocations: 0.8951 MB / 461.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.4978, allocations: 274.5 kB / 462.2 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.4979, allocations: 3.938 kB / 462.2 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007631/0.4986, allocations: 169 kB / 462.3 MB, free: 8.738 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.345e-06/0.4987, allocations: 0 / 462.3 MB, free: 8.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.003163/0.5018, allocations: 0.6084 MB / 462.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.5019, allocations: 77.11 kB / 463 MB, free: 8.008 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.5023, allocations: 220.1 kB / 463.2 MB, free: 7.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.5024, allocations: 25.7 kB / 463.2 MB, free: 7.758 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.5026, allocations: 218.4 kB / 463.5 MB, free: 7.543 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.144e-05/0.5027, allocations: 43.44 kB / 463.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.5027, allocations: 8 kB / 463.5 MB, free: 7.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.5029, allocations: 322.8 kB / 463.8 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.5034, allocations: 104.1 kB / 463.9 MB, free: 7.062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.5041, allocations: 161.6 kB / 464.1 MB, free: 6.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006001/0.5047, allocations: 142.5 kB / 464.2 MB, free: 6.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.5047, allocations: 0 / 464.2 MB, free: 6.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00178/0.5065, allocations: 407.8 kB / 464.6 MB, free: 6.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003481/0.5069, allocations: 0.6402 MB / 465.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.5069, allocations: 4 kB / 465.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004048/0.5073, allocations: 56.81 kB / 465.3 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.5077, allocations: 55.91 kB / 465.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007636/0.5085, allocations: 0.5836 MB / 466 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.5091, allocations: 52.08 kB / 466 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.5091, allocations: 11.94 kB / 466 MB, free: 4.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.5091, allocations: 4 kB / 466 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001228/0.5104, allocations: 290.1 kB / 466.3 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5104, allocations: 4 kB / 466.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001254/0.5105, allocations: 29.03 kB / 466.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.5109, allocations: 51.91 kB / 466.4 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.5124, allocations: 1.385 MB / 467.8 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.5128, allocations: 43.84 kB / 467.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.5129, allocations: 8 kB / 467.8 MB, free: 2.891 MB / 346.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: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002777/0.5132, allocations: 213.2 kB / 468 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-05/0.5133, allocations: 31.66 kB / 468.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.5134, allocations: 17.84 kB / 468.1 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.5134, allocations: 0 / 468.1 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.5134, allocations: 0 / 468.1 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.5134, allocations: 0 / 468.1 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.5139, allocations: 289.4 kB / 468.4 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.5139, allocations: 0 / 468.4 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003711/0.5143, allocations: 39.97 kB / 468.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003293/0.5146, allocations: 60.77 kB / 468.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.5146, allocations: 0 / 468.5 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002599/0.5173, allocations: 1.512 MB / 470 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5173, allocations: 0 / 470 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.5195, allocations: 460.3 kB / 470.4 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.5197, allocations: 100.9 kB / 470.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.959e-05/0.5198, allocations: 4 kB / 470.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.5202, allocations: 40.03 kB / 470.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.5203, allocations: 23.97 kB / 470.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.5204, allocations: 4 kB / 470.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002711/0.5206, allocations: 168.5 kB / 470.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5207, allocations: 0 / 470.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007174/0.5214, allocations: 111.7 kB / 470.9 MB, free: 15.61 MB / 362.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00271/0.5241, allocations: 1.007 MB / 471.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.5263, allocations: 0.5879 MB / 472.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.5264, allocations: 4 kB / 472.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007724/0.5272, allocations: 233.9 kB / 472.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/0.5276, allocations: 32.98 kB / 472.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.5333, allocations: 2.556 MB / 475.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.5338, allocations: 0.7556 MB / 476 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.534, allocations: 67.41 kB / 476.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/0.534, allocations: 0 / 476.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.574/3.108, allocations: 4.815 MB / 480.9 MB, free: 5.383 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat