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/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.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/ModelicaServices trunk/package.mo): time 0.001457/0.001457, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001754/0.001755, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.36 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.1005, allocations: 50.53 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004957/0.1055, allocations: 2.771 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.107, allocations: 0.7089 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1073, allocations: 4 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002132/0.1075, allocations: 39.58 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003387/0.1079, allocations: 91.19 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1083, allocations: 103.8 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005509/0.1089, allocations: 350.5 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1092, allocations: 84.7 kB / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.1094, allocations: 131.5 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.1096, allocations: 155.3 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.1097, allocations: 28 kB / 362 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.831e-05/0.1098, allocations: 28 kB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.1098, allocations: 67.77 kB / 362.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.11, allocations: 143.3 kB / 362.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.1104, allocations: 323.1 kB / 362.6 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1104, allocations: 3.938 kB / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1104, allocations: 0 / 362.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1104, allocations: 0 / 362.6 MB, free: 8.926 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.001364/0.1118, allocations: 0.6418 MB / 363.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1119, allocations: 16.02 kB / 363.3 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.599e-05/0.1119, allocations: 50.73 kB / 363.3 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.466e-05/0.112, allocations: 32.56 kB / 363.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.1124, allocations: 279.6 kB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.1124, allocations: 20.81 kB / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.1125, allocations: 24.36 kB / 363.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.1131, allocations: 277.8 kB / 363.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1131, allocations: 0 / 363.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.1132, allocations: 12 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1132, allocations: 8 kB / 363.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.1139, allocations: 237.6 kB / 364.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.1156, allocations: 0.9403 MB / 365.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008488/0.1165, allocations: 246.5 kB / 365.4 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/0.1168, allocations: 100.8 kB / 365.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.1168, allocations: 4.219 kB / 365.5 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000555/0.1174, allocations: 189.6 kB / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.583e-06/0.1174, allocations: 0 / 365.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002315/0.1197, allocations: 0.6512 MB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.1199, allocations: 110.8 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.1202, allocations: 278.4 kB / 366.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.1202, allocations: 29.7 kB / 366.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1204, allocations: 183.8 kB / 366.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.1204, allocations: 39.45 kB / 366.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.654e-05/0.1205, allocations: 45.61 kB / 367 MB, free: 4.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1207, allocations: 338.8 kB / 367.3 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.121, allocations: 91.92 kB / 367.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003877/0.1214, allocations: 179.3 kB / 367.6 MB, free: 3.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006982/0.1221, allocations: 289 kB / 367.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.433e-06/0.1222, allocations: 4 kB / 367.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00123/0.1234, allocations: 446.1 kB / 368.3 MB, free: 2.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.1234, allocations: 33.7 kB / 368.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1235, allocations: 4 kB / 368.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004998/0.124, allocations: 88.8 kB / 368.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.1242, allocations: 39.97 kB / 368.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.1272, allocations: 2.009 MB / 370.5 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.1276, allocations: 47.86 kB / 370.5 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.1276, allocations: 19.97 kB / 370.5 MB, free: 460 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.000159/0.1278, allocations: 138.4 kB / 370.7 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.1278, allocations: 27.72 kB / 370.7 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.1279, allocations: 29.83 kB / 370.7 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1279, allocations: 4 kB / 370.7 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1279, allocations: 0 / 370.7 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1279, allocations: 0 / 370.7 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1724/0.3003, allocations: 290.3 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.3003, allocations: 3.125 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.3005, allocations: 21.86 kB / 371 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003804/0.3009, allocations: 81.16 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.301, allocations: 5.047 kB / 371.1 MB, free: 20.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.3034, allocations: 1.912 MB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3034, allocations: 1.125 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.3046, allocations: 364.3 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3047, allocations: 102 kB / 373.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/0.3048, allocations: 9.719 kB / 373.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.305, allocations: 32.81 kB / 373.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.136e-05/0.3051, allocations: 16.86 kB / 373.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.3052, allocations: 8.109 kB / 373.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000228/0.3054, allocations: 196.3 kB / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3054, allocations: 0 / 373.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.3059, allocations: 67.11 kB / 373.8 MB, free: 18.5 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.001376/0.3073, allocations: 0.8922 MB / 374.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.3087, allocations: 486.7 kB / 375.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3087, allocations: 0.7188 kB / 375.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005189/0.3092, allocations: 236.5 kB / 375.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3096, allocations: 48.16 kB / 375.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007885/0.3175, allocations: 3.461 MB / 378.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.3178, allocations: 0.7471 MB / 379.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.318, allocations: 28.48 kB / 379.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.3181, allocations: 74.17 kB / 379.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3181, allocations: 0 / 379.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03731/0.3554, allocations: 6.26 MB / 386 MB, free: 13.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.42, allocations: 3.562 kB / 386 MB, free: 13.78 MB / 302.1 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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