Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.001258/0.001258, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001228/0.001228, allocations: 195 kB / 18 MB, free: 5.105 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.475/1.475, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 55.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2574, allocations: 49.43 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004538/0.262, allocations: 2.753 MB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.2636, allocations: 0.67 MB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003253/0.2639, allocations: 4 kB / 403.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.2642, allocations: 47.56 kB / 403.7 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002332/0.2644, allocations: 87.25 kB / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.2648, allocations: 95.83 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003485/0.2651, allocations: 354.5 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.2653, allocations: 84.7 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.2655, allocations: 139.4 kB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.2656, allocations: 151.3 kB / 404.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.8e-05/0.2657, allocations: 28 kB / 404.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.322e-05/0.2657, allocations: 32 kB / 404.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.437e-05/0.2658, allocations: 55.83 kB / 404.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.2659, allocations: 151.2 kB / 404.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003131/0.2663, allocations: 324.5 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2663, allocations: 0 / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.2663, allocations: 3.984 kB / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.2663, allocations: 0 / 405.2 MB, free: 3.836 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.001285/0.2676, allocations: 0.6379 MB / 405.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.2676, allocations: 15.97 kB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.206e-05/0.2677, allocations: 58.72 kB / 405.9 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.07e-05/0.2678, allocations: 32.56 kB / 406 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.2681, allocations: 271.8 kB / 406.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.2682, allocations: 16.81 kB / 406.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/0.2682, allocations: 16.38 kB / 406.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.2689, allocations: 281.9 kB / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2689, allocations: 0 / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.2689, allocations: 8 kB / 406.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.2689, allocations: 8 kB / 406.5 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007355/0.2697, allocations: 249.5 kB / 406.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.2712, allocations: 0.9441 MB / 407.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/0.2721, allocations: 242.5 kB / 408 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003374/0.2724, allocations: 104.8 kB / 408.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.142e-05/0.2725, allocations: 4 kB / 408.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.2729, allocations: 181.3 kB / 408.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.753e-06/0.273, allocations: 0 / 408.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002361/0.2753, allocations: 0.6512 MB / 408.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.2754, allocations: 106.8 kB / 409 MB, free: 15.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.2757, allocations: 270.5 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.2757, allocations: 29.7 kB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2758, allocations: 176 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.682e-05/0.2759, allocations: 39.45 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.276, allocations: 53.55 kB / 409.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2761, allocations: 334.8 kB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.2764, allocations: 95.91 kB / 410 MB, free: 14.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.2768, allocations: 164.2 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006848/0.2775, allocations: 274.7 kB / 410.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2775, allocations: 0 / 410.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001233/0.2788, allocations: 431.6 kB / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.2788, allocations: 37.7 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2789, allocations: 0 / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003935/0.2793, allocations: 76.86 kB / 410.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.2795, allocations: 47.89 kB / 411 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.2822, allocations: 1.954 MB / 412.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.2827, allocations: 55.7 kB / 413 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.2827, allocations: 11.94 kB / 413 MB, free: 11.51 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (19): * Single equations (assignments): 17 * 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.0001607/0.2829, allocations: 139.5 kB / 413.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/0.2829, allocations: 23.66 kB / 413.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.121e-05/0.283, allocations: 29.83 kB / 413.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.283, allocations: 0 / 413.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.283, allocations: 0 / 413.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.283, allocations: 0 / 413.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.2833, allocations: 297.5 kB / 413.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2833, allocations: 0 / 413.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.2834, allocations: 23.98 kB / 413.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002758/0.2837, allocations: 76.73 kB / 413.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.2838, allocations: 11.98 kB / 413.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.2861, allocations: 1.762 MB / 415.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2861, allocations: 0 / 415.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.2871, allocations: 353.5 kB / 415.7 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-05/0.2872, allocations: 104.8 kB / 415.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.2873, allocations: 0 / 415.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.2875, allocations: 35.95 kB / 415.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.47e-05/0.2876, allocations: 15.98 kB / 415.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.2876, allocations: 7.938 kB / 415.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001795/0.2878, allocations: 194 kB / 416.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2878, allocations: 4 kB / 416.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.2882, allocations: 71.84 kB / 416.1 MB, free: 8.141 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.00136/0.2896, allocations: 0.901 MB / 417 MB, free: 7.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009837/0.2906, allocations: 410 kB / 417.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2906, allocations: 0 / 417.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004608/0.2911, allocations: 234.8 kB / 417.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.2914, allocations: 48.64 kB / 417.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004849/0.2963, allocations: 2.925 MB / 420.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.2966, allocations: 0.744 MB / 421.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.2967, allocations: 22.3 kB / 421.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.2968, allocations: 79.41 kB / 421.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2968, allocations: 0 / 421.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.956/2.253, allocations: 6.488 MB / 428 MB, free: 12.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.34/28.59, allocations: 12 kB / 428 MB, free: 12.23 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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