Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001028/0.001029, 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.565/1.565, 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.0008711/0.000871, allocations: 85.14 kB / 292.1 MB, free: 5.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.732e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3767/0.493, allocations: 81.48 MB / 483.6 MB, free: 7.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.4932, allocations: 86.95 kB / 483.7 MB, free: 7.934 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01617/0.5094, allocations: 5.861 MB / 489.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.5095, allocations: 0 / 489.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.5095, allocations: 4 kB / 489.6 MB, free: 2.949 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.001151/0.5107, allocations: 0.5713 MB / 490.1 MB, free: 2.355 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.584e-05/0.5108, allocations: 8.031 kB / 490.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.5109, allocations: 57.86 kB / 490.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.5111, allocations: 33.19 kB / 490.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.5116, allocations: 270.7 kB / 490.5 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.5116, allocations: 19.75 kB / 490.5 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.5117, allocations: 27.36 kB / 490.5 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004908/0.5122, allocations: 223.2 kB / 490.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.5122, allocations: 4 kB / 490.8 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.5123, allocations: 7.812 kB / 490.8 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.5123, allocations: 4 kB / 490.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.5126, allocations: 151.5 kB / 490.9 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.5145, allocations: 1.018 MB / 491.9 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.5148, allocations: 138.3 kB / 492.1 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.822e-05/0.5149, allocations: 57.72 kB / 492.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.5149, allocations: 7.953 kB / 492.1 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002284/0.5152, allocations: 138.9 kB / 492.3 MB, free: 480 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.303e-06/0.5152, allocations: 0 / 492.3 MB, free: 480 kB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006292/0.5158, allocations: 229.8 kB / 492.5 MB, free: 280 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.5159, allocations: 106.8 kB / 492.6 MB, free: 148 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.5161, allocations: 233.2 kB / 492.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.5162, allocations: 33.39 kB / 492.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.5163, allocations: 172 kB / 493 MB, free: 15.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.817e-05/0.5164, allocations: 49.91 kB / 493.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.5164, allocations: 3.188 kB / 493.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.5166, allocations: 330.2 kB / 493.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.5167, allocations: 63.42 kB / 493.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.5169, allocations: 122.3 kB / 493.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001534/0.517, allocations: 85.08 kB / 493.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.517, allocations: 0 / 493.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007993/0.5178, allocations: 325.9 kB / 494 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.5179, allocations: 44.08 kB / 494 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.5179, allocations: 6.188 kB / 494 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.5183, allocations: 50.56 kB / 494.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.5185, allocations: 43.09 kB / 494.1 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.5206, allocations: 1.612 MB / 495.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.521, allocations: 64.02 kB / 495.8 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.521, allocations: 11.94 kB / 495.8 MB, free: 12.99 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001325/0.5211, allocations: 130 kB / 496 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.5212, allocations: 19.72 kB / 496 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.5212, allocations: 25.95 kB / 496 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5213, allocations: 0 / 496 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.5213, allocations: 0.625 kB / 496 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.5213, allocations: 4 kB / 496 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.5216, allocations: 305.4 kB / 496.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5216, allocations: 0 / 496.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.5218, allocations: 24.86 kB / 496.3 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001505/0.522, allocations: 52.77 kB / 496.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.522, allocations: 4 kB / 496.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.5235, allocations: 1.483 MB / 497.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5235, allocations: 0 / 497.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000611/0.5241, allocations: 257.6 kB / 498.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.388e-05/0.5242, allocations: 104.8 kB / 498.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.557e-05/0.5242, allocations: 4 kB / 498.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.5245, allocations: 43.95 kB / 498.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.5246, allocations: 23.91 kB / 498.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.5246, allocations: 11.89 kB / 498.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.5249, allocations: 192.7 kB / 498.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5249, allocations: 0 / 498.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000402/0.5253, allocations: 71.84 kB / 498.6 MB, free: 10.05 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.0009457/0.5262, allocations: 0.7952 MB / 499.4 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005532/0.5268, allocations: 333.6 kB / 499.7 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5268, allocations: 0 / 499.7 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.5271, allocations: 178.6 kB / 499.9 MB, free: 8.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.5274, allocations: 40.17 kB / 499.9 MB, free: 8.652 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008714/0.5283, allocations: 324.8 kB / 0.4885 GB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.5286, allocations: 0.756 MB / 0.4892 GB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.5287, allocations: 26.06 kB / 0.4892 GB, free: 7.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.5289, allocations: 75.41 kB / 0.4893 GB, free: 7.414 MB / 362.7 MB Notification: Performance of SimCode: time 8.51e-07/0.5289, allocations: 4 kB / 0.4893 GB, free: 7.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.5503, allocations: 5.525 MB / 0.4947 GB, free: 2.148 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/0.5506, allocations: 184.1 kB / 0.4949 GB, free: 1.93 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.321, allocations: 5.891 kB / 0.4949 GB, free: 1.93 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat