Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.606/1.606, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009445/0.0009445, allocations: 90.94 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.617e-05, allocations: 4 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4277/0.5358, allocations: 81.64 MB / 483.8 MB, free: 7.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003235/0.5362, allocations: 82.05 kB / 483.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02181/0.558, allocations: 6.286 MB / 490.1 MB, free: 2.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.558, allocations: 0 / 490.1 MB, free: 2.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.854e-05/0.5581, allocations: 12 kB / 490.2 MB, free: 2.488 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001138/0.5592, allocations: 0.5985 MB / 490.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.195e-05/0.5593, allocations: 8.031 kB / 490.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.857e-05/0.5594, allocations: 73.53 kB / 490.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.5597, allocations: 55.42 kB / 490.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.5602, allocations: 316 kB / 491.2 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.5603, allocations: 29.66 kB / 491.2 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.5603, allocations: 34.31 kB / 491.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008129/0.5612, allocations: 352.1 kB / 491.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.5612, allocations: 0 / 491.6 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.399e-05/0.5612, allocations: 16.75 kB / 491.6 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.5613, allocations: 8 kB / 491.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006431/0.5619, allocations: 253.4 kB / 491.9 MB, free: 1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.565, allocations: 1.475 MB / 493.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/0.5656, allocations: 191.5 kB / 493.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001996/0.5658, allocations: 71.59 kB / 493.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.5659, allocations: 4 kB / 493.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.357e-05/0.566, allocations: 39.88 kB / 493.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 2.044e-06/0.566, allocations: 0 / 493.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.001079/0.5671, allocations: 279.1 kB / 493.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.5671, allocations: 55.34 kB / 494 MB, free: 15.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.5676, allocations: 275.4 kB / 494.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.5677, allocations: 29.7 kB / 494.3 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.5679, allocations: 223.5 kB / 494.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.445e-05/0.568, allocations: 63.09 kB / 494.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.771e-05/0.568, allocations: 5.031 kB / 494.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5682, allocations: 342.8 kB / 494.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.5684, allocations: 56 kB / 495 MB, free: 14.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.5686, allocations: 137.4 kB / 495.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.5689, allocations: 85.97 kB / 495.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.5689, allocations: 0 / 495.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001174/0.5701, allocations: 367.8 kB / 495.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.5701, allocations: 8 kB / 495.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.5701, allocations: 4 kB / 495.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004198/0.5705, allocations: 86.3 kB / 495.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.5708, allocations: 44.02 kB / 495.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.5753, allocations: 3.112 MB / 498.8 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/0.5757, allocations: 43.62 kB / 498.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.5758, allocations: 8 kB / 498.8 MB, free: 9.902 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.5759, allocations: 117 kB / 498.9 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/0.576, allocations: 27.72 kB / 499 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.5762, allocations: 33.2 kB / 499 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.5762, allocations: 3.172 kB / 499 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.5762, allocations: 3.938 kB / 499 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5762, allocations: 0 / 499 MB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006332/0.5768, allocations: 373.2 kB / 499.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.5769, allocations: 0 / 499.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.577, allocations: 20 kB / 499.4 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.5773, allocations: 77.67 kB / 499.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.5774, allocations: 4.047 kB / 499.5 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/0.5811, allocations: 3.035 MB / 0.4907 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.5811, allocations: 3.984 kB / 0.4907 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.5822, allocations: 374.3 kB / 0.4911 GB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.5824, allocations: 112.7 kB / 0.4912 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.5824, allocations: 0 / 0.4912 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/0.5828, allocations: 31.98 kB / 0.4912 GB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.737e-05/0.5829, allocations: 20.05 kB / 0.4912 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.5829, allocations: 13.55 kB / 0.4913 GB, free: 5.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003938/0.5833, allocations: 211.1 kB / 0.4915 GB, free: 5.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5833, allocations: 0 / 0.4915 GB, free: 5.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008479/0.5842, allocations: 103.7 kB / 0.4916 GB, free: 5.012 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001456/0.5856, allocations: 0.9174 MB / 0.4925 GB, free: 4.062 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.587, allocations: 483.3 kB / 0.4929 GB, free: 3.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.587, allocations: 64 / 0.4929 GB, free: 3.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004701/0.5875, allocations: 313.2 kB / 0.4932 GB, free: 3.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/0.5881, allocations: 44.05 kB / 0.4933 GB, free: 3.195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.5896, allocations: 430.5 kB / 0.4937 GB, free: 2.742 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.5901, allocations: 0.7872 MB / 0.4944 GB, free: 1.926 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001827/0.5903, allocations: 26.97 kB / 0.4945 GB, free: 1.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.5906, allocations: 103.4 kB / 0.4946 GB, free: 1.801 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5906, allocations: 0 / 0.4946 GB, free: 1.801 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/0.6201, allocations: 6.368 MB / 0.5008 GB, free: 11.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000269/0.6204, allocations: 182.2 kB / 0.501 GB, free: 11.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.583, allocations: 4 kB / 0.501 GB, free: 11.49 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat