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.001284/0.001284, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001362/0.001362, allocations: 193.4 kB / 18 MB, free: 5.074 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 47.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.26, allocations: 49.44 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003988/0.2641, allocations: 2.761 MB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.2653, allocations: 0.6661 MB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.2654, allocations: 4 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.2656, allocations: 43.58 kB / 403.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.2658, allocations: 91.19 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.2661, allocations: 95.8 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.2665, allocations: 366.5 kB / 404.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.2667, allocations: 80.7 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.2669, allocations: 131.5 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.2671, allocations: 151.3 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.2672, allocations: 28 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.918e-05/0.2673, allocations: 32 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.2673, allocations: 63.75 kB / 404.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.2675, allocations: 147.3 kB / 404.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.2679, allocations: 325.8 kB / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2679, allocations: 0 / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2679, allocations: 0 / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.2679, allocations: 0 / 405.2 MB, free: 3.82 MB / 318.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.001399/0.2694, allocations: 0.6601 MB / 405.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.2694, allocations: 15.89 kB / 405.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.796e-05/0.2695, allocations: 54.72 kB / 406 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.284e-05/0.2696, allocations: 32.75 kB / 406 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.27, allocations: 275.9 kB / 406.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.27, allocations: 16.81 kB / 406.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.775e-05/0.2701, allocations: 20.38 kB / 406.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.2708, allocations: 281.8 kB / 406.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2708, allocations: 0 / 406.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.2708, allocations: 8 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.2708, allocations: 4 kB / 406.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007441/0.2716, allocations: 241.6 kB / 406.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.2732, allocations: 0.9483 MB / 407.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008562/0.2741, allocations: 238.5 kB / 408 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003356/0.2744, allocations: 100.8 kB / 408.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.2745, allocations: 4 kB / 408.1 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004637/0.2749, allocations: 181.7 kB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.2749, allocations: 0 / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002417/0.2774, allocations: 0.6572 MB / 408.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.2775, allocations: 106.8 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003105/0.2778, allocations: 278.4 kB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.2778, allocations: 37.69 kB / 409.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.278, allocations: 184.1 kB / 409.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.278, allocations: 39.64 kB / 409.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.2781, allocations: 45.7 kB / 409.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2783, allocations: 334.8 kB / 409.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003649/0.2786, allocations: 103.9 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.279, allocations: 178.2 kB / 410.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007105/0.2798, allocations: 280.5 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.2798, allocations: 8 kB / 410.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001231/0.281, allocations: 443.7 kB / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.2811, allocations: 37.75 kB / 411 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.2811, allocations: 7.938 kB / 411 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003555/0.2815, allocations: 76.8 kB / 411 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.2817, allocations: 43.97 kB / 411.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002974/0.2847, allocations: 2.009 MB / 413.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.285, allocations: 55.8 kB / 413.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.285, allocations: 8 kB / 413.2 MB, free: 11.34 MB / 334.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.0001486/0.2852, allocations: 137.8 kB / 413.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.21e-05/0.2852, allocations: 31.86 kB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.2853, allocations: 25.83 kB / 413.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2853, allocations: 7.938 kB / 413.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.2853, allocations: 3.938 kB / 413.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2853, allocations: 3.984 kB / 413.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.2856, allocations: 285.5 kB / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.2856, allocations: 0 / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.2858, allocations: 23.97 kB / 413.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002742/0.2861, allocations: 84.73 kB / 413.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2861, allocations: 0 / 413.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002551/0.2886, allocations: 1.931 MB / 415.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2887, allocations: 0 / 415.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2898, allocations: 363.7 kB / 416 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.7e-05/0.2898, allocations: 96.95 kB / 416.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.2899, allocations: 11.94 kB / 416.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.2901, allocations: 27.97 kB / 416.2 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/0.2902, allocations: 27.97 kB / 416.2 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.2903, allocations: 4 kB / 416.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2905, allocations: 198 kB / 416.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2905, allocations: 0 / 416.4 MB, free: 7.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.2909, allocations: 71.89 kB / 416.5 MB, free: 7.793 MB / 334.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.001428/0.2923, allocations: 0.8974 MB / 417.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.2936, allocations: 485.9 kB / 417.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2936, allocations: 0 / 417.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.2941, allocations: 235 kB / 418.1 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.2945, allocations: 48.55 kB / 418.1 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007293/0.3018, allocations: 3.434 MB / 421.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.3022, allocations: 0.744 MB / 422.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.3023, allocations: 22.3 kB / 422.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.3024, allocations: 87.34 kB / 422.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3024, allocations: 0 / 422.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.3374, allocations: 6.336 MB / 428.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.83, allocations: 7.438 kB / 428.7 MB, free: 11.49 MB / 350.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