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.000979/0.0009791, allocations: 201.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009558/0.0009558, allocations: 93.27 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.735e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 51.49 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3528/0.465, allocations: 80.98 MB / 476.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4653, allocations: 83.03 kB / 476.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01481/0.4801, allocations: 6.216 MB / 482.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4801, allocations: 0 / 482.6 MB, free: 6.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.271e-05/0.4802, allocations: 12 kB / 482.6 MB, free: 6.93 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.0007951/0.481, allocations: 0.5996 MB / 483.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.481, allocations: 8.031 kB / 483.2 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.4812, allocations: 62.98 kB / 483.2 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.4816, allocations: 309 kB / 483.5 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.4816, allocations: 15.61 kB / 483.6 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.4816, allocations: 23.94 kB / 483.6 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000376/0.482, allocations: 227.9 kB / 483.8 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.4825, allocations: 302.5 kB / 484.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.4825, allocations: 0 / 484.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.4826, allocations: 0 / 484.1 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.4826, allocations: 15.17 kB / 484.1 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.4844, allocations: 1.389 MB / 485.5 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.4848, allocations: 174.9 kB / 485.7 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.534e-05/0.4849, allocations: 73.08 kB / 485.7 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.4849, allocations: 7.938 kB / 485.7 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.4849, allocations: 38.31 kB / 485.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.863e-06/0.485, allocations: 1.688 kB / 485.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006439/0.4856, allocations: 262.3 kB / 486 MB, free: 3.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.4856, allocations: 55.41 kB / 486.1 MB, free: 3.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.4858, allocations: 232.3 kB / 486.3 MB, free: 3.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.4859, allocations: 25.7 kB / 486.4 MB, free: 3.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.958e-05/0.486, allocations: 227.3 kB / 486.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.486, allocations: 63.05 kB / 486.6 MB, free: 3.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.108e-05/0.486, allocations: 0 / 486.6 MB, free: 3.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.616e-05/0.4861, allocations: 336.4 kB / 487 MB, free: 3.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.551e-05/0.4862, allocations: 54.5 kB / 487 MB, free: 3.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.4863, allocations: 132.5 kB / 487.1 MB, free: 2.887 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.4864, allocations: 76.67 kB / 487.2 MB, free: 2.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4864, allocations: 0 / 487.2 MB, free: 2.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006396/0.4871, allocations: 345.6 kB / 487.6 MB, free: 2.555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4871, allocations: 7.953 kB / 487.6 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4871, allocations: 4 kB / 487.6 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.4874, allocations: 86.06 kB / 487.7 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.4875, allocations: 42.36 kB / 487.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/0.4897, allocations: 2.92 MB / 490.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.4899, allocations: 35.83 kB / 490.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.49, allocations: 11.31 kB / 490.7 MB, free: 15.47 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedback.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real 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.0002074/0.4902, allocations: 108.9 kB / 490.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005655/0.4908, allocations: 264.6 kB / 491 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.4908, allocations: 23.72 kB / 491 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.364e-05/0.4909, allocations: 32.58 kB / 491.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4909, allocations: 0 / 491.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4909, allocations: 4 kB / 491.1 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.4909, allocations: 4 kB / 491.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.4913, allocations: 311.1 kB / 491.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4913, allocations: 0 / 491.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.835e-05/0.4914, allocations: 15.98 kB / 491.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.4916, allocations: 77.45 kB / 491.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.4916, allocations: 3.984 kB / 491.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/0.4939, allocations: 2.914 MB / 494.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.494, allocations: 0 / 494.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006213/0.4946, allocations: 364.8 kB / 494.8 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.86e-05/0.4947, allocations: 108 kB / 494.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.4947, allocations: 0 / 494.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.495, allocations: 31.97 kB / 494.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.495, allocations: 15.42 kB / 494.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.495, allocations: 4 kB / 494.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001742/0.4952, allocations: 180.6 kB / 495.1 MB, free: 11.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4952, allocations: 0 / 495.1 MB, free: 11.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.4957, allocations: 99.69 kB / 495.2 MB, free: 11.08 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.0009295/0.4967, allocations: 0.8966 MB / 496.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005724/0.4973, allocations: 394.1 kB / 496.5 MB, free: 9.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4973, allocations: 4 kB / 496.5 MB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.4976, allocations: 301.7 kB / 496.8 MB, free: 9.582 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.4979, allocations: 41.61 kB / 496.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009039/0.4988, allocations: 401.7 kB / 497.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.4992, allocations: 0.7872 MB / 498 MB, free: 8.348 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.4993, allocations: 18.08 kB / 498 MB, free: 8.328 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.4994, allocations: 103.3 kB / 498.1 MB, free: 8.297 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4994, allocations: 0 / 498.1 MB, free: 8.297 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.5237, allocations: 5.394 MB / 0.4917 GB, free: 2.98 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.524, allocations: 141.8 kB / 0.4918 GB, free: 2.789 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.35, allocations: 5.406 kB / 0.4918 GB, free: 2.785 MB / 362.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