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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.000705/0.0007051, allocations: 94.86 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007954/0.0007953, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002067/0.0002066, allocations: 11.94 kB / 307.9 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08115/0.08137, allocations: 51.52 MB / 359.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.002562/0.08396, allocations: 2.45 MB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.0851, allocations: 0.7013 MB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.08525, allocations: 4 kB / 362.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.08538, allocations: 35.7 kB / 362.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.08556, allocations: 71.45 kB / 362.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002452/0.08581, allocations: 91.84 kB / 362.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.08613, allocations: 330.6 kB / 363 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.0863, allocations: 77.12 kB / 363.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001407/0.08645, allocations: 115.5 kB / 363.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.08662, allocations: 135.3 kB / 363.4 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.08666, allocations: 16 kB / 363.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.448e-05/0.0867, allocations: 12 kB / 363.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.678e-05/0.08675, allocations: 47.77 kB / 363.4 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.0869, allocations: 160.9 kB / 363.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.08715, allocations: 299.1 kB / 363.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.08716, allocations: 4 kB / 363.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08717, allocations: 3.938 kB / 363.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.08718, allocations: 0 / 363.9 MB, free: 8.613 MB / 302.1 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.001014/0.0882, allocations: 0.6068 MB / 364.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.08824, allocations: 12.03 kB / 364.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.642e-05/0.0883, allocations: 50.73 kB / 364.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.85e-05/0.08837, allocations: 32.64 kB / 364.6 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.08866, allocations: 279.6 kB / 364.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.08868, allocations: 16.81 kB / 364.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.08872, allocations: 24.38 kB / 364.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000593/0.08932, allocations: 293.9 kB / 365.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.08934, allocations: 0 / 365.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.08936, allocations: 4 kB / 365.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.08938, allocations: 11.98 kB / 365.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007307/0.09012, allocations: 269.5 kB / 365.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.09157, allocations: 0.9715 MB / 366.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.09238, allocations: 274.6 kB / 366.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.09272, allocations: 116.8 kB / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.09274, allocations: 4 kB / 366.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004494/0.0932, allocations: 202 kB / 367 MB, free: 5.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.09321, allocations: 7.938 kB / 367 MB, free: 5.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002205/0.09542, allocations: 0.7288 MB / 367.8 MB, free: 4.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.09549, allocations: 106.8 kB / 367.9 MB, free: 4.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002482/0.09574, allocations: 266.5 kB / 368.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.09577, allocations: 33.7 kB / 368.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.196e-05/0.09587, allocations: 171.9 kB / 368.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.243e-05/0.09592, allocations: 47.38 kB / 368.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.09596, allocations: 29.64 kB / 368.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.845e-05/0.09606, allocations: 330.8 kB / 368.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003388/0.09641, allocations: 115.9 kB / 368.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.09679, allocations: 195.8 kB / 369 MB, free: 3.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000655/0.09746, allocations: 295.1 kB / 369.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.09747, allocations: 0 / 369.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.00115/0.09862, allocations: 471.6 kB / 369.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.09867, allocations: 37.69 kB / 369.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.09868, allocations: 0 / 369.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/0.09901, allocations: 92.86 kB / 369.9 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.0992, allocations: 39.97 kB / 370 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002191/0.1014, allocations: 1.806 MB / 371.8 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.1017, allocations: 51.81 kB / 371.8 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.1017, allocations: 12 kB / 371.8 MB, free: 156 kB / 302.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.1019, allocations: 138.9 kB / 372 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1308/0.2327, allocations: 24.47 kB / 372 MB, free: 19.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.2328, allocations: 22.56 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2328, allocations: 1.375 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2328, allocations: 5.719 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.2328, allocations: 0.5625 kB / 372 MB, free: 19.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.2331, allocations: 294.8 kB / 372.3 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2331, allocations: 1.688 kB / 372.3 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.2333, allocations: 30.8 kB / 372.3 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002819/0.2336, allocations: 79.19 kB / 372.4 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.2336, allocations: 5.531 kB / 372.4 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.2353, allocations: 1.675 MB / 374.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2354, allocations: 5.344 kB / 374.1 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.2364, allocations: 394.4 kB / 374.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.2364, allocations: 97.34 kB / 374.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.2365, allocations: 12.91 kB / 374.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002426/0.2367, allocations: 42.36 kB / 374.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.2368, allocations: 21.84 kB / 374.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2368, allocations: 3.859 kB / 374.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001523/0.237, allocations: 188.7 kB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.237, allocations: 0.5625 kB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.2373, allocations: 73.12 kB / 374.9 MB, free: 17.76 MB / 302.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001165/0.2385, allocations: 0.9397 MB / 375.8 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008872/0.2394, allocations: 432.2 kB / 376.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2394, allocations: 0.5 kB / 376.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004395/0.2399, allocations: 243.4 kB / 376.5 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.2402, allocations: 41.94 kB / 376.5 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.2445, allocations: 3.14 MB / 379.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001355/0.2446, allocations: 0.7432 MB / 380.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.522e-05/0.2448, allocations: 24.41 kB / 380.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2449, allocations: 71.97 kB / 380.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2449, allocations: 0 / 380.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01553/0.2604, allocations: 5.695 MB / 386.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001465/0.2606, allocations: 242.8 kB / 386.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/1.951, allocations: 0 / 386.5 MB, free: 13.41 MB / 302.1 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vHys,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v