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.001146/0.001146, allocations: 197 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.406/1.406, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009671/0.0009671, allocations: 89.78 kB / 292.1 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.937e-05/3.961e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09561, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.318/0.4137, allocations: 80.63 MB / 482.8 MB, free: 8.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001516/0.4139, allocations: 67.22 kB / 482.8 MB, free: 8.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01486/0.4288, allocations: 6.004 MB / 488.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4288, allocations: 0 / 488.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.4288, allocations: 4 kB / 488.8 MB, free: 3.758 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.0008069/0.4296, allocations: 0.5919 MB / 489.4 MB, free: 3.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.4297, allocations: 8.031 kB / 489.4 MB, free: 3.137 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.602e-05/0.4297, allocations: 60.41 kB / 489.5 MB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.436e-05/0.4298, allocations: 31.62 kB / 489.5 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002542/0.4301, allocations: 270.9 kB / 489.8 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.4301, allocations: 19.06 kB / 489.8 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.4301, allocations: 26.06 kB / 489.8 MB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.4305, allocations: 256.4 kB / 490.1 MB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.4305, allocations: 5.25 kB / 490.1 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.4305, allocations: 11.19 kB / 490.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.4306, allocations: 4 kB / 490.1 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.4308, allocations: 174.2 kB / 490.3 MB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.4322, allocations: 1.117 MB / 491.4 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.4325, allocations: 134.7 kB / 491.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.809e-05/0.4326, allocations: 54.8 kB / 491.6 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.4327, allocations: 0 / 491.6 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.4329, allocations: 131.7 kB / 491.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.4329, allocations: 0 / 491.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005405/0.4334, allocations: 205.2 kB / 491.9 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.4335, allocations: 110.8 kB / 492 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001922/0.4337, allocations: 248.8 kB / 492.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.4337, allocations: 28.95 kB / 492.3 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.4338, allocations: 200.2 kB / 492.5 MB, free: 440 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.4338, allocations: 42.06 kB / 492.5 MB, free: 404 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.4338, allocations: 2.75 kB / 492.5 MB, free: 404 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.507e-05/0.4339, allocations: 337.3 kB / 492.8 MB, free: 68 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.158e-05/0.434, allocations: 52.73 kB / 492.9 MB, free: 32 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.4341, allocations: 166 kB / 493.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.4343, allocations: 98.97 kB / 493.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4343, allocations: 7.891 kB / 493.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006966/0.435, allocations: 343.5 kB / 493.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/0.435, allocations: 33.7 kB / 493.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.4351, allocations: 1.5 kB / 493.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.4353, allocations: 56.83 kB / 493.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.4355, allocations: 63.95 kB / 493.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.4371, allocations: 1.506 MB / 495.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.4375, allocations: 67.7 kB / 495.2 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.4375, allocations: 14.44 kB / 495.2 MB, free: 13.59 MB / 362.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 0.0001115/0.4376, allocations: 120.9 kB / 495.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.028e-05/0.4377, allocations: 23.72 kB / 495.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.4377, allocations: 29.83 kB / 495.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.4377, allocations: 3.953 kB / 495.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.4378, allocations: 0 / 495.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.4378, allocations: 7.938 kB / 495.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002851/0.4381, allocations: 297.4 kB / 495.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4381, allocations: 0.8125 kB / 495.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.4382, allocations: 27.97 kB / 495.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001374/0.4384, allocations: 52.84 kB / 495.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.4384, allocations: 8.797 kB / 495.8 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.4398, allocations: 1.503 MB / 497.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4398, allocations: 3.984 kB / 497.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005557/0.4404, allocations: 236.1 kB / 497.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.4405, allocations: 116.8 kB / 497.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.4406, allocations: 3.984 kB / 497.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.4408, allocations: 39.91 kB / 497.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.4409, allocations: 23.97 kB / 497.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.4409, allocations: 7.984 kB / 497.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001993/0.4411, allocations: 195.1 kB / 497.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4412, allocations: 0 / 497.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003359/0.4415, allocations: 79.84 kB / 498 MB, free: 10.61 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.0008298/0.4423, allocations: 0.763 MB / 498.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005132/0.4429, allocations: 339.1 kB / 499.1 MB, free: 9.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4429, allocations: 4.062 kB / 499.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.4431, allocations: 186.6 kB / 499.3 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.4434, allocations: 40.83 kB / 499.3 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008231/0.4442, allocations: 332 kB / 499.6 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.4445, allocations: 0.7599 MB / 0.4887 GB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001226/0.4447, allocations: 30.91 kB / 0.4887 GB, free: 8.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.4448, allocations: 75.41 kB / 0.4888 GB, free: 7.973 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4448, allocations: 7.938 kB / 0.4888 GB, free: 7.965 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.4644, allocations: 5.909 MB / 0.4945 GB, free: 2.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.4646, allocations: 181.3 kB / 0.4947 GB, free: 2.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.244, allocations: 0.5625 kB / 0.4947 GB, free: 2.098 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