Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001551/0.001551, allocations: 118.8 kB / 17.79 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001958, allocations: 197.2 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002193/0.002193, allocations: 59.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3579, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003869/0.3618, allocations: 2.776 MB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.363, allocations: 0.7011 MB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3631, allocations: 4 kB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.3633, allocations: 43.58 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.3635, allocations: 87.2 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.3637, allocations: 95.86 kB / 412.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.3641, allocations: 362.5 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/0.3643, allocations: 88.69 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.3645, allocations: 127.5 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.3647, allocations: 155.3 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.727e-05/0.3648, allocations: 32 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.65e-05/0.3648, allocations: 28 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.3649, allocations: 63.77 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.365, allocations: 143.3 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.3654, allocations: 328.5 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3654, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3654, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3655, allocations: 4 kB / 413.8 MB, free: 12.5 MB / 334.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.001247/0.3667, allocations: 0.6379 MB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3668, allocations: 8.031 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.324e-05/0.3668, allocations: 58.72 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.076e-05/0.3669, allocations: 32.56 kB / 414.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.3673, allocations: 279.7 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.3674, allocations: 16.81 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.851e-05/0.3674, allocations: 24.38 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.368, allocations: 277.8 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.368, allocations: 0 / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.3681, allocations: 8 kB / 415.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3681, allocations: 8 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006814/0.3688, allocations: 241.6 kB / 415.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3702, allocations: 0.9441 MB / 416.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008047/0.3711, allocations: 242.5 kB / 416.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.3714, allocations: 105 kB / 416.7 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.3714, allocations: 7.938 kB / 416.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004417/0.3719, allocations: 181.4 kB / 416.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.3719, allocations: 0 / 416.8 MB, free: 9.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002158/0.374, allocations: 0.6512 MB / 417.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.098e-05/0.3741, allocations: 106.8 kB / 417.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.3744, allocations: 270.6 kB / 417.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3744, allocations: 25.7 kB / 417.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3745, allocations: 183.8 kB / 418.1 MB, free: 7.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.3746, allocations: 39.45 kB / 418.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.213e-05/0.3747, allocations: 49.61 kB / 418.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3748, allocations: 330.8 kB / 418.5 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.3751, allocations: 99.92 kB / 418.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.3755, allocations: 171.5 kB / 418.7 MB, free: 7.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006131/0.3761, allocations: 264.3 kB / 419 MB, free: 6.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3761, allocations: 0 / 419 MB, free: 6.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001107/0.3772, allocations: 434.7 kB / 419.4 MB, free: 6.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.3773, allocations: 37.69 kB / 419.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3773, allocations: 4 kB / 419.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/0.3777, allocations: 88.8 kB / 419.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3779, allocations: 39.95 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00254/0.3804, allocations: 1.947 MB / 421.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.3807, allocations: 51.73 kB / 421.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.3807, allocations: 8 kB / 421.6 MB, free: 4.18 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.0001482/0.3809, allocations: 145.8 kB / 421.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.3809, allocations: 27.66 kB / 421.8 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.381, allocations: 25.83 kB / 421.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.381, allocations: 4 kB / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.381, allocations: 0 / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.381, allocations: 0 / 421.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.3813, allocations: 285.5 kB / 422.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3813, allocations: 3.938 kB / 422.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001314/0.3814, allocations: 24.09 kB / 422.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002546/0.3817, allocations: 92.67 kB / 422.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.3817, allocations: 0 / 422.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.3838, allocations: 1.758 MB / 423.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3838, allocations: 0 / 423.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.3848, allocations: 361.4 kB / 424.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.772e-05/0.3849, allocations: 100.8 kB / 424.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.604e-05/0.3849, allocations: 8 kB / 424.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.3852, allocations: 35.95 kB / 424.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.3853, allocations: 15.98 kB / 424.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.3853, allocations: 4.188 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.3855, allocations: 194 kB / 424.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3855, allocations: 0 / 424.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000348/0.3858, allocations: 67.84 kB / 424.7 MB, free: 0.8125 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.001277/0.3871, allocations: 0.8901 MB / 425.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009232/0.388, allocations: 421.6 kB / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3881, allocations: 4.125 kB / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004258/0.3885, allocations: 226.5 kB / 426.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.3888, allocations: 48.53 kB / 426.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.3935, allocations: 2.928 MB / 429.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.3938, allocations: 0.7517 MB / 430 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.3939, allocations: 26.28 kB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.394, allocations: 79.41 kB / 430.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3941, allocations: 0 / 430.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02683/0.4209, allocations: 6.51 MB / 436.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.35, allocations: 12 kB / 436.6 MB, free: 4.875 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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