Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00104/0.00104, allocations: 181.3 kB / 17.02 MB, free: 5.125 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.444/1.444, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008429/0.0008429, allocations: 94.66 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002249/0.0002249, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2393, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09321/0.3326, allocations: 79.26 MB / 455.2 MB, free: 1.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/0.3329, allocations: 75.95 kB / 455.3 MB, free: 1.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01507/0.348, allocations: 5.498 MB / 460.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.348, allocations: 0 / 460.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.348, allocations: 15.94 kB / 460.8 MB, free: 11.78 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.0009697/0.349, allocations: 0.5871 MB / 461.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3491, allocations: 8.031 kB / 461.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.14e-05/0.3491, allocations: 54.55 kB / 461.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.3492, allocations: 23.72 kB / 461.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.3495, allocations: 271.6 kB / 461.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.3496, allocations: 16.38 kB / 461.7 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.3496, allocations: 19.98 kB / 461.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/0.3502, allocations: 244.5 kB / 462 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3502, allocations: 4 kB / 462 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/0.3502, allocations: 8 kB / 462 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3502, allocations: 7.938 kB / 462 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007101/0.351, allocations: 279.2 kB / 462.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.3525, allocations: 0.8912 MB / 463.2 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007739/0.3533, allocations: 266.6 kB / 463.4 MB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3533, allocations: 11.94 kB / 463.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004431/0.3538, allocations: 173 kB / 463.6 MB, free: 8.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.3538, allocations: 0 / 463.6 MB, free: 8.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.00156/0.3554, allocations: 0.6045 MB / 464.2 MB, free: 8.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.3554, allocations: 77.11 kB / 464.3 MB, free: 8.004 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.3556, allocations: 220.1 kB / 464.5 MB, free: 7.785 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.3557, allocations: 25.7 kB / 464.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.3558, allocations: 160 kB / 464.7 MB, free: 7.594 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.3558, allocations: 39.45 kB / 464.7 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.3558, allocations: 4 kB / 464.7 MB, free: 7.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.356, allocations: 330.8 kB / 465 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.3563, allocations: 104.1 kB / 465.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003442/0.3566, allocations: 161.6 kB / 465.3 MB, free: 6.934 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.357, allocations: 145.5 kB / 465.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.357, allocations: 0 / 465.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008874/0.3579, allocations: 410 kB / 465.8 MB, free: 6.371 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002863/0.3582, allocations: 0.6451 MB / 466.5 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3582, allocations: 4 kB / 466.5 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002489/0.3584, allocations: 56.81 kB / 466.6 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.3587, allocations: 51.97 kB / 466.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004845/0.3592, allocations: 0.5991 MB / 467.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002607/0.3594, allocations: 40.03 kB / 467.2 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.3595, allocations: 15.94 kB / 467.3 MB, free: 4.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/0.3595, allocations: 12 kB / 467.3 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006274/0.3601, allocations: 290.3 kB / 467.6 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3601, allocations: 4 kB / 467.6 MB, free: 4.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.876e-05/0.3602, allocations: 24.84 kB / 467.6 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.3604, allocations: 51.91 kB / 467.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009815/0.3614, allocations: 1.393 MB / 469 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3616, allocations: 43.84 kB / 469.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.3617, allocations: 4 kB / 469.1 MB, free: 2.918 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.0001771/0.3618, allocations: 213 kB / 469.3 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.023e-05/0.3619, allocations: 27.67 kB / 469.3 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.557e-05/0.3619, allocations: 25.91 kB / 469.3 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3619, allocations: 0 / 469.3 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.3619, allocations: 0 / 469.3 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.362, allocations: 7.984 kB / 469.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002674/0.3622, allocations: 281.5 kB / 469.6 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3622, allocations: 0 / 469.6 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.3624, allocations: 35.97 kB / 469.6 MB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.3626, allocations: 60.77 kB / 469.7 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3626, allocations: 4 kB / 469.7 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.364, allocations: 1.5 MB / 471.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3641, allocations: 0 / 471.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.3652, allocations: 472.3 kB / 471.7 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/0.3653, allocations: 93.11 kB / 471.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.3653, allocations: 4 kB / 471.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3655, allocations: 31.97 kB / 471.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.059e-05/0.3656, allocations: 28.03 kB / 471.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3657, allocations: 8 kB / 471.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001684/0.3658, allocations: 172.5 kB / 472 MB, free: 15.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3658, allocations: 0 / 472 MB, free: 15.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004814/0.3663, allocations: 107.7 kB / 472.1 MB, free: 15.64 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.001412/0.3677, allocations: 1.003 MB / 473.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.369, allocations: 0.5918 MB / 473.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3691, allocations: 0 / 473.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.3695, allocations: 230.9 kB / 473.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.3698, allocations: 43.09 kB / 474 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.373, allocations: 2.534 MB / 476.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3733, allocations: 0.7518 MB / 477.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.3735, allocations: 25.94 kB / 477.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.3736, allocations: 63.42 kB / 477.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3736, allocations: 4 kB / 477.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.3922, allocations: 5.215 MB / 482.6 MB, free: 5.035 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.3924, allocations: 208.6 kB / 482.8 MB, free: 4.801 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.192, allocations: 0 / 482.8 MB, free: 4.801 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Integrator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat does not exist to compare? outputFormat=mat