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.00111/0.00111, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 64.03 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09242, allocations: 50.54 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004414/0.09688, allocations: 2.816 MB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.09847, allocations: 0.7052 MB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/0.09883, allocations: 8 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.09911, allocations: 31.7 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003226/0.09944, allocations: 71.45 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.0998, allocations: 91.84 kB / 360.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.1002, allocations: 330.6 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1004, allocations: 87.28 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.1007, allocations: 119.5 kB / 361.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.1009, allocations: 143.3 kB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.1009, allocations: 20 kB / 361.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.884e-05/0.101, allocations: 16 kB / 361.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.133e-05/0.1011, allocations: 55.75 kB / 361.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.1012, allocations: 135.2 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.1015, allocations: 307.2 kB / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1015, allocations: 0 / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1015, allocations: 3.938 kB / 361.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1016, allocations: 0 / 361.8 MB, free: 9.461 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.001231/0.1028, allocations: 0.6341 MB / 362.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1028, allocations: 12.03 kB / 362.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.502e-05/0.1029, allocations: 58.72 kB / 362.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.543e-05/0.103, allocations: 32.56 kB / 362.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.1033, allocations: 283.6 kB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.1033, allocations: 12.81 kB / 362.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.1034, allocations: 24.38 kB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.104, allocations: 277.9 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.104, allocations: 0 / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1041, allocations: 8 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.1041, allocations: 4 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007716/0.1049, allocations: 245.5 kB / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.1064, allocations: 0.9442 MB / 364.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007898/0.1072, allocations: 238.6 kB / 364.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1076, allocations: 112.7 kB / 364.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1076, allocations: 4 kB / 364.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005333/0.1081, allocations: 181.9 kB / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.1082, allocations: 7.938 kB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002199/0.1104, allocations: 0.643 MB / 365.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.1104, allocations: 114.8 kB / 365.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.1107, allocations: 274.4 kB / 365.9 MB, free: 5.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.1108, allocations: 25.7 kB / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1109, allocations: 179.9 kB / 366.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.95e-05/0.111, allocations: 39.39 kB / 366.1 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.517e-05/0.1111, allocations: 45.7 kB / 366.2 MB, free: 4.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1112, allocations: 330.8 kB / 366.5 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003319/0.1115, allocations: 107.8 kB / 366.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.1119, allocations: 164.4 kB / 366.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000658/0.1125, allocations: 270.9 kB / 367 MB, free: 3.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1126, allocations: 0 / 367 MB, free: 3.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001154/0.1137, allocations: 439.5 kB / 367.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.1138, allocations: 33.7 kB / 367.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1138, allocations: 0 / 367.5 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/0.1142, allocations: 80.86 kB / 367.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.1144, allocations: 39.91 kB / 367.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002447/0.1168, allocations: 1.764 MB / 369.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.1171, allocations: 55.95 kB / 369.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.999e-05/0.1172, allocations: 4 kB / 369.4 MB, free: 1.309 MB / 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.0001575/0.1173, allocations: 142.9 kB / 369.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.1174, allocations: 19.72 kB / 369.6 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.913e-05/0.1174, allocations: 37.83 kB / 369.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1175, allocations: 0 / 369.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1175, allocations: 3.938 kB / 369.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1175, allocations: 0 / 369.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.1177, allocations: 301.3 kB / 369.9 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1178, allocations: 0 / 369.9 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.1179, allocations: 19.98 kB / 369.9 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002567/0.1182, allocations: 80.8 kB / 370 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.1182, allocations: 3.984 kB / 370 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1609/0.2791, allocations: 1.627 MB / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2792, allocations: 0 / 371.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.2804, allocations: 352 kB / 372 MB, free: 19.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.2806, allocations: 106.1 kB / 372.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.031e-05/0.2806, allocations: 9.156 kB / 372.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2809, allocations: 37.75 kB / 372.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.096e-05/0.281, allocations: 20.12 kB / 372.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.281, allocations: 7.609 kB / 372.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.2812, allocations: 193.5 kB / 372.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2812, allocations: 0 / 372.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004168/0.2816, allocations: 67.03 kB / 372.4 MB, free: 19.11 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.001299/0.2829, allocations: 0.891 MB / 373.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.2841, allocations: 406.1 kB / 373.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2841, allocations: 3.75 kB / 373.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005013/0.2846, allocations: 229.4 kB / 373.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.285, allocations: 47.42 kB / 374 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005195/0.2902, allocations: 3.019 MB / 377 MB, free: 16.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.2904, allocations: 0.7467 MB / 377.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001293/0.2905, allocations: 26.72 kB / 377.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.2907, allocations: 73.56 kB / 377.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2907, allocations: 0 / 377.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/0.3096, allocations: 5.792 MB / 383.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.3097, allocations: 240.9 kB / 383.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.108, allocations: 7.938 kB / 383.9 MB, free: 14.68 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