Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 197.4 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.43/1.43, allocations: 225.6 MB / 234.8 MB, free: 3.242 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008553/0.0008553, allocations: 98.91 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.212e-05/2.214e-05, allocations: 8 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.116, allocations: 51.48 MB / 395.3 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3505/0.4666, allocations: 79.96 MB / 475.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.4669, allocations: 67.28 kB / 475.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01585/0.4827, allocations: 5.953 MB / 481.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4828, allocations: 0 / 481.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.4828, allocations: 4 kB / 481.2 MB, free: 7.906 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00094/0.4838, allocations: 0.5729 MB / 481.8 MB, free: 7.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4838, allocations: 15.97 kB / 481.8 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.4839, allocations: 31.62 kB / 481.9 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.4842, allocations: 264.5 kB / 482.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.4843, allocations: 15.36 kB / 482.1 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.88e-05/0.4843, allocations: 20 kB / 482.2 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002999/0.4846, allocations: 154.9 kB / 482.3 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.485, allocations: 227.8 kB / 482.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.485, allocations: 0 / 482.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.485, allocations: 0 / 482.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.485, allocations: 4 kB / 482.5 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.4866, allocations: 1.057 MB / 483.6 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.4869, allocations: 129.7 kB / 483.7 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.193e-05/0.487, allocations: 57.05 kB / 483.8 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.487, allocations: 0 / 483.8 MB, free: 5.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001877/0.4872, allocations: 124.4 kB / 483.9 MB, free: 5.449 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.4872, allocations: 0 / 483.9 MB, free: 5.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005685/0.4878, allocations: 198.7 kB / 484.1 MB, free: 5.277 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.4879, allocations: 106.8 kB / 484.2 MB, free: 5.148 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.4881, allocations: 215.6 kB / 484.4 MB, free: 4.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.4881, allocations: 33.52 kB / 484.4 MB, free: 4.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.017e-05/0.4882, allocations: 199.7 kB / 484.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.892e-05/0.4882, allocations: 38.77 kB / 484.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.4882, allocations: 4 kB / 484.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.574e-05/0.4883, allocations: 334.2 kB / 485 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.929e-05/0.4884, allocations: 52.92 kB / 485.1 MB, free: 4.371 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.4885, allocations: 150.2 kB / 485.2 MB, free: 4.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.4886, allocations: 65.45 kB / 485.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.4886, allocations: 0 / 485.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006203/0.4893, allocations: 288.1 kB / 485.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.4893, allocations: 33.7 kB / 485.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4893, allocations: 4 kB / 485.6 MB, free: 3.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.4895, allocations: 54.02 kB / 485.6 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.4897, allocations: 59.38 kB / 485.7 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.4909, allocations: 1.459 MB / 487.2 MB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.4912, allocations: 58.38 kB / 487.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.4913, allocations: 13.69 kB / 487.2 MB, free: 2.254 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/0.4914, allocations: 111.7 kB / 487.3 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004295/0.4918, allocations: 197.5 kB / 487.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.037e-05/0.4918, allocations: 27.72 kB / 487.6 MB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.333e-05/0.4919, allocations: 23.53 kB / 487.6 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4919, allocations: 4 kB / 487.6 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.4919, allocations: 3.984 kB / 487.6 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.4919, allocations: 0 / 487.6 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.4921, allocations: 254.3 kB / 487.8 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4921, allocations: 0 / 487.8 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.4922, allocations: 27.97 kB / 487.9 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001128/0.4924, allocations: 47.09 kB / 487.9 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4924, allocations: 7.984 kB / 487.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.4934, allocations: 1.441 MB / 489.4 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4934, allocations: 0 / 489.4 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004769/0.4939, allocations: 227.4 kB / 489.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.4941, allocations: 104.6 kB / 489.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.164e-05/0.4941, allocations: 4 kB / 489.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.4944, allocations: 36.61 kB / 489.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/0.4945, allocations: 19.91 kB / 489.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.4945, allocations: 7.125 kB / 489.7 MB, free: 15.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001587/0.4947, allocations: 178.1 kB / 489.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4947, allocations: 0 / 489.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003759/0.495, allocations: 79.69 kB / 490 MB, free: 15.58 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008266/0.4959, allocations: 0.7563 MB / 490.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.4964, allocations: 312.8 kB / 491.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4964, allocations: 0 / 491.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.4966, allocations: 184.5 kB / 491.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.4969, allocations: 32.23 kB / 491.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000836/0.4977, allocations: 325.7 kB / 491.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.498, allocations: 0.7599 MB / 492.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.4982, allocations: 24.05 kB / 492.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.4983, allocations: 74.78 kB / 492.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4983, allocations: 0 / 492.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02731/0.5256, allocations: 5.052 MB / 497.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/0.5259, allocations: 135.7 kB / 497.6 MB, free: 8.062 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/2.294, allocations: 0 / 497.6 MB, free: 8.062 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat