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.001128/0.001128, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.98 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09399/0.09518, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00372/0.09893, allocations: 2.82 MB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1001, allocations: 0.7206 MB / 360.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1002, allocations: 4 kB / 360.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1004, allocations: 27.77 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.1005, allocations: 79.39 kB / 360.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.1008, allocations: 79.92 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.1011, allocations: 330.6 kB / 360.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.1012, allocations: 75.36 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.1014, allocations: 127.4 kB / 361.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1016, allocations: 147.3 kB / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.43e-05/0.1016, allocations: 20 kB / 361.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.652e-05/0.1017, allocations: 16 kB / 361.3 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.787e-05/0.1017, allocations: 55.7 kB / 361.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.1019, allocations: 131.3 kB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.1021, allocations: 307.1 kB / 361.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1022, allocations: 0 / 361.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1022, allocations: 0 / 361.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.567e-06/0.1022, 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.001228/0.1034, allocations: 0.6418 MB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1035, allocations: 12.03 kB / 362.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.526e-05/0.1036, allocations: 54.73 kB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.003e-05/0.1036, allocations: 36.56 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.104, allocations: 275.6 kB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.104, allocations: 16.81 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.65e-05/0.1041, allocations: 20.38 kB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006293/0.1047, allocations: 277.9 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1047, allocations: 7.938 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.1047, allocations: 4 kB / 363.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1048, allocations: 4 kB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007222/0.1055, allocations: 245.6 kB / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.1071, allocations: 0.9481 MB / 364.3 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007712/0.1078, allocations: 238.5 kB / 364.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.1082, allocations: 100.8 kB / 364.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1082, allocations: 4 kB / 364.7 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005358/0.1087, allocations: 185.7 kB / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 4.619e-06/0.1088, allocations: 4 kB / 364.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002332/0.1111, allocations: 0.643 MB / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/0.1112, allocations: 118.8 kB / 365.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002846/0.1115, allocations: 278.3 kB / 365.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1115, allocations: 33.7 kB / 365.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1116, allocations: 179.8 kB / 366.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.1117, allocations: 39.45 kB / 366.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.1118, allocations: 49.61 kB / 366.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1119, allocations: 334.8 kB / 366.5 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003342/0.1122, allocations: 103.9 kB / 366.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.1126, allocations: 179.3 kB / 366.8 MB, free: 4.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.1133, allocations: 288.7 kB / 367.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1133, allocations: 4 kB / 367.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001162/0.1145, allocations: 447.5 kB / 367.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.664e-05/0.1145, allocations: 33.7 kB / 367.5 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1145, allocations: 4 kB / 367.5 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.1149, allocations: 76.86 kB / 367.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.1151, allocations: 47.91 kB / 367.7 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/0.1176, allocations: 1.815 MB / 369.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.118, allocations: 51.88 kB / 369.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.118, allocations: 11.94 kB / 369.5 MB, free: 1.176 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.0001367/0.1181, allocations: 150.3 kB / 369.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.1182, allocations: 23.72 kB / 369.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.367e-05/0.1182, allocations: 21.83 kB / 369.7 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.1183, allocations: 8.125 kB / 369.7 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1183, allocations: 7.938 kB / 369.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1183, allocations: 0 / 369.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.1185, allocations: 293.4 kB / 370 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1185, allocations: 0 / 370 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.1187, allocations: 27.91 kB / 370.1 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002587/0.1189, allocations: 80.8 kB / 370.1 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.119, allocations: 0 / 370.1 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1461/0.2651, allocations: 1.721 MB / 371.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2652, allocations: 0 / 371.9 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.2662, allocations: 349.2 kB / 372.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.2663, allocations: 104.5 kB / 372.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/0.2664, allocations: 9.047 kB / 372.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.2666, allocations: 35.06 kB / 372.3 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.98e-05/0.2667, allocations: 23.64 kB / 372.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.2667, allocations: 3.797 kB / 372.4 MB, free: 19.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.2669, allocations: 195.6 kB / 372.6 MB, free: 19.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2669, allocations: 0 / 372.6 MB, free: 19.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.2674, allocations: 69.5 kB / 372.6 MB, free: 19.01 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.001195/0.2686, allocations: 0.8966 MB / 373.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.2698, allocations: 482.7 kB / 374 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2698, allocations: 0 / 374 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004428/0.2702, allocations: 233 kB / 374.2 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2706, allocations: 47.98 kB / 374.3 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006505/0.2771, allocations: 3.525 MB / 377.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.2773, allocations: 0.7461 MB / 378.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.2774, allocations: 24.25 kB / 378.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.2775, allocations: 73.03 kB / 378.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2775, allocations: 0 / 378.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.2961, allocations: 5.811 MB / 384.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.2963, allocations: 255 kB / 384.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.119, allocations: 0 / 384.7 MB, free: 14.38 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