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.001139/0.00114, allocations: 108 kB / 16.92 MB, free: 6.332 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.001178/0.001178, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.315/1.315, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 42.69 kB / 300.7 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09091/0.09202, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004556/0.09662, allocations: 2.738 MB / 352.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.09808, allocations: 0.6817 MB / 353.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.0983, allocations: 7.938 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.09846, allocations: 39.58 kB / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.09875, allocations: 87.25 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.09906, allocations: 99.81 kB / 353.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.09946, allocations: 354.5 kB / 354.2 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.09964, allocations: 88.56 kB / 354.3 MB, free: 208 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.09983, allocations: 135.5 kB / 354.4 MB, free: 72 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.1, allocations: 143.4 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.92e-05/0.1001, allocations: 28 kB / 354.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.9e-05/0.1002, allocations: 35.94 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.507e-05/0.1003, allocations: 59.77 kB / 354.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.1004, allocations: 151.2 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.1008, allocations: 323.1 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1008, allocations: 4 kB / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1008, allocations: 0 / 355.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1008, allocations: 0 / 355.1 MB, free: 15.34 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.001212/0.102, allocations: 0.634 MB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.1021, allocations: 8.031 kB / 355.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.606e-05/0.1021, allocations: 54.73 kB / 355.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.812e-05/0.1022, allocations: 36.5 kB / 355.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.1025, allocations: 279.6 kB / 356.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.1026, allocations: 16.81 kB / 356.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.484e-05/0.1026, allocations: 20.38 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.1032, allocations: 277.9 kB / 356.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1032, allocations: 0 / 356.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.1033, allocations: 12 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1033, allocations: 4 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007531/0.104, allocations: 249.5 kB / 356.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1055, allocations: 0.9442 MB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008202/0.1064, allocations: 242.5 kB / 357.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.1067, allocations: 104.8 kB / 358 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1067, allocations: 7.938 kB / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004949/0.1072, allocations: 188.7 kB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.352e-06/0.1073, allocations: 0 / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002293/0.1096, allocations: 0.6512 MB / 358.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.1096, allocations: 106.8 kB / 358.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/0.1099, allocations: 270.4 kB / 359.2 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1099, allocations: 29.7 kB / 359.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.11, allocations: 168 kB / 359.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.841e-05/0.1101, allocations: 51.3 kB / 359.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.431e-05/0.1101, allocations: 37.7 kB / 359.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1103, allocations: 342.8 kB / 359.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003573/0.1106, allocations: 92.14 kB / 359.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.111, allocations: 176.3 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006783/0.1117, allocations: 275.2 kB / 360.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1117, allocations: 3.938 kB / 360.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001195/0.1129, allocations: 427 kB / 360.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.113, allocations: 41.69 kB / 360.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.113, allocations: 4 kB / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.1133, allocations: 72.8 kB / 360.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.1135, allocations: 47.94 kB / 360.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.1161, allocations: 1.954 MB / 362.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003157/0.1164, allocations: 47.86 kB / 362.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.1164, allocations: 12 kB / 362.9 MB, free: 7.004 MB / 302.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.0001194/0.1166, allocations: 129.8 kB / 363.1 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.1166, allocations: 31.59 kB / 363.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.1167, allocations: 25.83 kB / 363.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1167, allocations: 4 kB / 363.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.1167, allocations: 0 / 363.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.1167, allocations: 8.031 kB / 363.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.1169, allocations: 289.3 kB / 363.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1169, allocations: 0 / 363.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.1171, allocations: 27.97 kB / 363.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002742/0.1174, allocations: 80.73 kB / 363.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.1174, allocations: 4 kB / 363.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.1196, allocations: 1.758 MB / 365.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1196, allocations: 0 / 365.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1207, allocations: 357.4 kB / 365.6 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.97e-05/0.1208, allocations: 104.8 kB / 365.7 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.1208, allocations: 4 kB / 365.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.1211, allocations: 39.91 kB / 365.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.289e-05/0.1212, allocations: 19.97 kB / 365.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.1212, allocations: 0 / 365.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.1214, allocations: 194 kB / 366 MB, free: 3.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1214, allocations: 0 / 366 MB, free: 3.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.1217, allocations: 67.91 kB / 366 MB, free: 3.648 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.001369/0.1231, allocations: 0.9039 MB / 366.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009815/0.1241, allocations: 417.6 kB / 367.4 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1241, allocations: 0 / 367.4 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004611/0.1246, allocations: 235 kB / 367.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.1249, allocations: 48.45 kB / 367.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1505/0.2754, allocations: 2.912 MB / 370.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.2756, allocations: 0.7468 MB / 371.3 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001289/0.2758, allocations: 21.92 kB / 371.3 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.2759, allocations: 75.67 kB / 371.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2759, allocations: 2.5 kB / 371.4 MB, free: 23.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.3061, allocations: 6.231 MB / 377.6 MB, free: 23.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.17, allocations: 16.81 kB / 377.6 MB, free: 23.33 MB / 302.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