Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008981/0.0008981, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007871/0.0007871, allocations: 92.5 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002167/0.0002167, allocations: 11.94 kB / 356.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1916, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.001944/0.1936, allocations: 2.361 MB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000737/0.1944, allocations: 0.6669 MB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.974e-05/0.1945, allocations: 7.938 kB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.703e-05/0.1946, allocations: 31.77 kB / 411.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001252/0.1947, allocations: 80.94 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/0.1949, allocations: 68.53 kB / 411.4 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.1951, allocations: 315.3 kB / 411.7 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.1953, allocations: 74.62 kB / 411.7 MB, free: 24.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.1954, allocations: 115.5 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1955, allocations: 127.4 kB / 412 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.363e-05/0.1955, allocations: 15.25 kB / 412 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.619e-05/0.1956, allocations: 16 kB / 412 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.683e-05/0.1956, allocations: 51.75 kB / 412.1 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.893e-05/0.1957, allocations: 149 kB / 412.2 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.1959, allocations: 236.6 kB / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1959, allocations: 0 / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1959, allocations: 0 / 412.4 MB, free: 23.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.1959, allocations: 0 / 412.4 MB, free: 23.38 MB / 298.7 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.0008759/0.1968, allocations: 0.6118 MB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.1968, allocations: 12.03 kB / 413.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.1969, allocations: 50.73 kB / 413.1 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.706e-05/0.1969, allocations: 32.56 kB / 413.1 MB, free: 22.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1972, allocations: 287.6 kB / 413.4 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1972, allocations: 12.81 kB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.1972, allocations: 24.38 kB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.1978, allocations: 285.9 kB / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1978, allocations: 0 / 413.7 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.1978, allocations: 12 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1979, allocations: 4 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006782/0.1985, allocations: 281.5 kB / 414 MB, free: 21.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.1998, allocations: 0.9637 MB / 415 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007305/0.2005, allocations: 278.6 kB / 415.3 MB, free: 20.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.2008, allocations: 116.7 kB / 415.4 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.2009, allocations: 3.984 kB / 415.4 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004522/0.2013, allocations: 197.5 kB / 415.6 MB, free: 20.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.2013, allocations: 0 / 415.6 MB, free: 20.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002065/0.2034, allocations: 0.7294 MB / 416.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.2035, allocations: 106.8 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.2037, allocations: 274.4 kB / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2037, allocations: 33.7 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.2038, allocations: 179.8 kB / 416.9 MB, free: 18.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.2038, allocations: 35.45 kB / 416.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.2038, allocations: 4 kB / 416.9 MB, free: 18.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.984e-05/0.2039, allocations: 334.8 kB / 417.2 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000305/0.2042, allocations: 111.9 kB / 417.4 MB, free: 18.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003208/0.2045, allocations: 189.3 kB / 417.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006079/0.2051, allocations: 296.3 kB / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2051, allocations: 0 / 417.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.00102/0.2062, allocations: 474.4 kB / 418.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.2062, allocations: 33.7 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2062, allocations: 4 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.2065, allocations: 84.86 kB / 418.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.2067, allocations: 43.91 kB / 418.5 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/0.2085, allocations: 1.791 MB / 420.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.2088, allocations: 60 kB / 420.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.2089, allocations: 15.98 kB / 420.3 MB, free: 14.97 MB / 298.7 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 9.808e-05/0.209, allocations: 145.6 kB / 420.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.209, allocations: 23.72 kB / 420.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.209, allocations: 29.83 kB / 420.5 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.209, allocations: 4 kB / 420.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.2091, allocations: 3.938 kB / 420.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2091, allocations: 0 / 420.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.2093, allocations: 285.5 kB / 420.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2093, allocations: 0 / 420.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.2094, allocations: 27.97 kB / 420.8 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002304/0.2096, allocations: 88.83 kB / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.2097, allocations: 0 / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.2112, allocations: 1.679 MB / 422.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2112, allocations: 0 / 422.6 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009018/0.2121, allocations: 397.4 kB / 423 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.844e-05/0.2122, allocations: 100.8 kB / 423.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.07e-05/0.2122, allocations: 4 kB / 423.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.2124, allocations: 43.95 kB / 423.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/0.2125, allocations: 19.97 kB / 423.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.2125, allocations: 8 kB / 423.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001254/0.2127, allocations: 189.9 kB / 423.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2127, allocations: 0 / 423.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.213, allocations: 71.83 kB / 423.4 MB, free: 11.65 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001101/0.2141, allocations: 0.9363 MB / 424.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007863/0.2149, allocations: 440.5 kB / 424.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2149, allocations: 0 / 424.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.2153, allocations: 242.8 kB / 425 MB, free: 9.977 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.2156, allocations: 42.95 kB / 425.1 MB, free: 9.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.2182, allocations: 1.702 MB / 426.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.2183, allocations: 0.744 MB / 427.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.2184, allocations: 71.42 kB / 427.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2184, allocations: 0 / 427.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.827/3.045, allocations: 4.714 MB / 432.3 MB, free: 2.609 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.simplifiedExpr,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.T_falling,vIn.signalSource.T_rising,vIn.signalSource.T_start,vIn.signalSource.T_width,vIn.signalSource.amplitude,vIn.signalSource.count,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