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.002155/0.002155, allocations: 110.9 kB / 17.06 MB, free: 5.977 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.002983/0.002983, allocations: 200 kB / 18.01 MB, free: 5.059 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.923/1.923, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 43.94 kB / 350.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2858, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004087/0.2899, allocations: 2.754 MB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.291, allocations: 0.67 MB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2912, allocations: 4 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.2914, allocations: 39.58 kB / 403.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.2916, allocations: 91.19 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.2919, allocations: 107.8 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003973/0.2923, allocations: 354.5 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.2925, allocations: 80.7 kB / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.2926, allocations: 139.4 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.2928, allocations: 147.4 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.229e-05/0.2929, allocations: 35.94 kB / 404.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.707e-05/0.2929, allocations: 28 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.293, allocations: 63.77 kB / 404.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.2932, allocations: 151.2 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003358/0.2935, allocations: 324.5 kB / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2935, allocations: 0 / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.2935, allocations: 0 / 405.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.2935, allocations: 0 / 405.2 MB, free: 3.816 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.001233/0.2948, allocations: 0.6418 MB / 405.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2948, allocations: 12.03 kB / 405.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.224e-05/0.2949, allocations: 50.73 kB / 405.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.295, allocations: 32.56 kB / 406 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.2954, allocations: 267.8 kB / 406.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2954, allocations: 20.81 kB / 406.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.2954, allocations: 16.38 kB / 406.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006522/0.2961, allocations: 281.8 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.2961, allocations: 0 / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.2962, allocations: 12 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.2962, allocations: 8 kB / 406.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007326/0.2969, allocations: 241.6 kB / 406.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.2984, allocations: 0.9518 MB / 407.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008066/0.2992, allocations: 238.6 kB / 408 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.2996, allocations: 104.7 kB / 408.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.2996, allocations: 8 kB / 408.1 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004697/0.3001, allocations: 184.5 kB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.3001, allocations: 0 / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002366/0.3025, allocations: 0.6512 MB / 408.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3026, allocations: 106.8 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.3028, allocations: 278.6 kB / 409.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.3029, allocations: 25.7 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.303, allocations: 183.7 kB / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.3031, allocations: 39.67 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-05/0.3031, allocations: 41.7 kB / 409.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3033, allocations: 342.8 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.3036, allocations: 95.92 kB / 410 MB, free: 14.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.304, allocations: 182.2 kB / 410.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006879/0.3047, allocations: 297.8 kB / 410.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3047, allocations: 0 / 410.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001189/0.3059, allocations: 446 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.306, allocations: 33.64 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.306, allocations: 4 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.3064, allocations: 76.8 kB / 411 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.3066, allocations: 44 kB / 411.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002979/0.3096, allocations: 2.009 MB / 413.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.3099, allocations: 55.69 kB / 413.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.31, allocations: 12 kB / 413.1 MB, free: 11.36 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.0001733/0.3101, allocations: 141.1 kB / 413.3 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.136e-05/0.3102, allocations: 31.72 kB / 413.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.092e-05/0.3102, allocations: 25.83 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3102, allocations: 4 kB / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.3103, allocations: 0 / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.3103, allocations: 0 / 413.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.3106, allocations: 297.4 kB / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3106, allocations: 0 / 413.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.3107, allocations: 23.97 kB / 413.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002941/0.311, allocations: 80.73 kB / 413.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.311, allocations: 4 kB / 413.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.3135, allocations: 1.927 MB / 415.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3135, allocations: 4.062 kB / 415.7 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3145, allocations: 345.5 kB / 416 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.42e-05/0.3146, allocations: 104.8 kB / 416.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.3147, allocations: 4 kB / 416.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3149, allocations: 39.95 kB / 416.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.582e-05/0.315, allocations: 15.98 kB / 416.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.315, allocations: 0 / 416.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000188/0.3152, allocations: 198 kB / 416.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3152, allocations: 3.938 kB / 416.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003987/0.3156, allocations: 67.91 kB / 416.4 MB, free: 7.828 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.001528/0.3172, allocations: 0.904 MB / 417.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.3185, allocations: 481.9 kB / 417.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3185, allocations: 0 / 417.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.319, allocations: 235 kB / 418 MB, free: 6.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.3194, allocations: 56.47 kB / 418.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007078/0.3265, allocations: 3.418 MB / 421.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.3268, allocations: 0.744 MB / 422.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.3269, allocations: 26.28 kB / 422.3 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.327, allocations: 81.16 kB / 422.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3271, allocations: 0 / 422.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.721/3.048, allocations: 6.492 MB / 428.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.92/29.96, allocations: 11.47 kB / 428.9 MB, free: 11.38 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