Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 106.7 kB / 16.92 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.6 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009841/0.0009842, allocations: 42.56 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.09834, allocations: 49.45 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003953/0.1023, allocations: 2.734 MB / 352.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.1037, allocations: 0.6778 MB / 353.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.1039, allocations: 8 kB / 353.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.1042, allocations: 39.58 kB / 353.6 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.1045, allocations: 91.25 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.1048, allocations: 99.8 kB / 353.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004719/0.1053, allocations: 358.5 kB / 354.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1055, allocations: 92.55 kB / 354.3 MB, free: 200 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1058, allocations: 127.5 kB / 354.4 MB, free: 72 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.106, allocations: 151.4 kB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.048e-05/0.1061, allocations: 32 kB / 354.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.485e-05/0.1062, allocations: 28 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.902e-05/0.1062, allocations: 67.73 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.1064, allocations: 139.3 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.1068, allocations: 319 kB / 355.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1068, allocations: 4 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1068, allocations: 0 / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.1069, allocations: 7.938 kB / 355.1 MB, free: 15.34 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.001393/0.1083, allocations: 0.6379 MB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1083, allocations: 11.97 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.823e-05/0.1084, allocations: 54.73 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.542e-05/0.1085, allocations: 32.56 kB / 355.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.1088, allocations: 279.6 kB / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.1089, allocations: 16.81 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.1089, allocations: 20.38 kB / 356.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/0.1096, allocations: 281.9 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1096, allocations: 3.938 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.1096, allocations: 8 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.1096, allocations: 4 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007721/0.1104, allocations: 245.6 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.1121, allocations: 0.9442 MB / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008781/0.113, allocations: 254.5 kB / 357.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003371/0.1133, allocations: 100.8 kB / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.1134, allocations: 0 / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.114, allocations: 184.6 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 3.547e-06/0.114, allocations: 4 kB / 358.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002447/0.1164, allocations: 0.6473 MB / 358.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/0.1165, allocations: 118.8 kB / 358.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.1168, allocations: 274.4 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.1169, allocations: 33.7 kB / 359.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.117, allocations: 171.8 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.1171, allocations: 47.44 kB / 359.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.189e-05/0.1172, allocations: 49.83 kB / 359.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1173, allocations: 330.8 kB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.1176, allocations: 107.9 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.118, allocations: 178.2 kB / 360.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007428/0.1188, allocations: 285 kB / 360.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1188, allocations: 0 / 360.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001313/0.1201, allocations: 443.6 kB / 360.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.622e-05/0.1202, allocations: 37.7 kB / 360.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1202, allocations: 4 kB / 360.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/0.1206, allocations: 76.86 kB / 360.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.1208, allocations: 47.91 kB / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/0.1237, allocations: 2.005 MB / 363 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.124, allocations: 43.88 kB / 363 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1241, allocations: 15.94 kB / 363 MB, free: 6.875 MB / 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.0001471/0.1242, allocations: 149.1 kB / 363.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.1243, allocations: 27.66 kB / 363.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.1243, allocations: 25.86 kB / 363.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1243, allocations: 3.938 kB / 363.2 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1244, allocations: 4 kB / 363.2 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1244, allocations: 0 / 363.2 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.1246, allocations: 293.4 kB / 363.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1247, allocations: 4 kB / 363.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.1248, allocations: 27.91 kB / 363.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002738/0.1251, allocations: 76.73 kB / 363.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.1251, allocations: 8 kB / 363.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.1274, allocations: 1.92 MB / 365.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1274, allocations: 0 / 365.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.1285, allocations: 356.5 kB / 365.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.423e-05/0.1286, allocations: 104.8 kB / 366 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.1287, allocations: 4 kB / 366 MB, free: 3.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.1289, allocations: 31.95 kB / 366.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.129, allocations: 19.98 kB / 366.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.129, allocations: 8 kB / 366.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000185/0.1292, allocations: 194 kB / 366.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.512e-06/0.1292, allocations: 0 / 366.3 MB, free: 3.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004834/0.1297, allocations: 75.78 kB / 366.3 MB, free: 3.34 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.001371/0.1311, allocations: 0.894 MB / 367.2 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.1325, allocations: 489.8 kB / 367.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.1325, allocations: 0 / 367.7 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.133, allocations: 227 kB / 367.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.1333, allocations: 52.41 kB / 368 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1516/0.2849, allocations: 3.427 MB / 371.4 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.2851, allocations: 0.7478 MB / 372.2 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.2853, allocations: 27.88 kB / 372.2 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.2854, allocations: 73.19 kB / 372.3 MB, free: 23.64 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2854, allocations: 3.906 kB / 372.3 MB, free: 23.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.3133, allocations: 6.243 MB / 378.5 MB, free: 23.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.11, allocations: 3.5 kB / 378.5 MB, free: 23.01 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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