Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008011/0.0008012, allocations: 100 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.05e-05/2.052e-05, allocations: 4 kB / 343.8 MB, free: 8.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.08998, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3252/0.4152, allocations: 80.83 MB / 476.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.4154, allocations: 80.8 kB / 476.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01401/0.4295, allocations: 5.812 MB / 482 MB, free: 7.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4295, allocations: 0 / 482 MB, free: 7.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.4295, allocations: 8 kB / 482 MB, free: 7.098 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007709/0.4303, allocations: 0.5641 MB / 482.6 MB, free: 6.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.4303, allocations: 8.031 kB / 482.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.73e-05/0.4304, allocations: 35.62 kB / 482.6 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002835/0.4307, allocations: 269.9 kB / 482.9 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.4307, allocations: 11.61 kB / 482.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.4308, allocations: 12 kB / 482.9 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002476/0.431, allocations: 142.9 kB / 483 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.4313, allocations: 192.1 kB / 483.2 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.4313, allocations: 0 / 483.2 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.4314, allocations: 3.984 kB / 483.2 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.4314, allocations: 4 kB / 483.2 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.4327, allocations: 0.9692 MB / 484.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.4329, allocations: 138.2 kB / 484.3 MB, free: 4.926 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.631e-05/0.433, allocations: 52.86 kB / 484.4 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.4331, allocations: 0 / 484.4 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.4332, allocations: 138 kB / 484.5 MB, free: 4.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.4333, allocations: 0 / 484.5 MB, free: 4.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005395/0.4338, allocations: 216.4 kB / 484.7 MB, free: 4.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/0.4338, allocations: 118 kB / 484.9 MB, free: 4.434 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.434, allocations: 216.9 kB / 485.1 MB, free: 4.258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.434, allocations: 29.7 kB / 485.1 MB, free: 4.223 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.4341, allocations: 177.2 kB / 485.3 MB, free: 4.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.4341, allocations: 46.56 kB / 485.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/0.4342, allocations: 0 / 485.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.633e-05/0.4342, allocations: 329.5 kB / 485.6 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.913e-05/0.4343, allocations: 59.23 kB / 485.7 MB, free: 3.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.4344, allocations: 127.9 kB / 485.8 MB, free: 3.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.563e-05/0.4345, allocations: 65.36 kB / 485.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4345, allocations: 0 / 485.9 MB, free: 3.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005495/0.4351, allocations: 286.4 kB / 486.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.4351, allocations: 40.03 kB / 486.2 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4351, allocations: 4 kB / 486.2 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.4353, allocations: 42.66 kB / 486.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.4355, allocations: 55.84 kB / 486.3 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.4366, allocations: 1.539 MB / 487.8 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002946/0.437, allocations: 52.09 kB / 487.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.437, allocations: 15.92 kB / 487.9 MB, free: 1.508 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 10 * 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 (21): * Single equations (assignments): 19 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.4371, allocations: 122.5 kB / 488 MB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004363/0.4375, allocations: 229.4 kB / 488.2 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.4376, allocations: 22.53 kB / 488.3 MB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.4376, allocations: 29.14 kB / 488.3 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4376, allocations: 0 / 488.3 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.91e-07/0.4377, allocations: 0 / 488.3 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4377, allocations: 7.984 kB / 488.3 MB, free: 1.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.4378, allocations: 254.5 kB / 488.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4378, allocations: 0 / 488.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/0.438, allocations: 27.97 kB / 488.6 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.981e-05/0.4381, allocations: 42.64 kB / 488.6 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.4381, allocations: 7.188 kB / 488.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.4393, allocations: 1.533 MB / 490.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4394, allocations: 3.953 kB / 490.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000541/0.4399, allocations: 247.8 kB / 490.4 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-05/0.44, allocations: 96.3 kB / 490.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.588e-05/0.44, allocations: 4 kB / 490.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002546/0.4403, allocations: 39.95 kB / 490.5 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.746e-05/0.4404, allocations: 22.34 kB / 490.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.4404, allocations: 4 kB / 490.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001569/0.4406, allocations: 171.2 kB / 490.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4406, allocations: 0 / 490.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003723/0.4409, allocations: 67.84 kB / 490.8 MB, free: 14.68 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 (9): * Single equations (assignments): 6 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008395/0.4418, allocations: 0.7865 MB / 491.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000442/0.4422, allocations: 318 kB / 491.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4423, allocations: 3.938 kB / 491.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.4425, allocations: 174.5 kB / 492.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.4427, allocations: 37.44 kB / 492.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.4455, allocations: 0.8275 MB / 492.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4458, allocations: 0.7599 MB / 493.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.4459, allocations: 26.11 kB / 493.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.666e-05/0.4461, allocations: 72.84 kB / 493.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4461, allocations: 0 / 493.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.4692, allocations: 4.774 MB / 498.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.4695, allocations: 170 kB / 498.7 MB, free: 6.887 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/2.279, allocations: 0 / 498.7 MB, free: 6.887 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat does not exist to compare? outputFormat=mat