Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 191.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007211/0.0007212, allocations: 98.09 kB / 296.7 MB, free: 6.711 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 4 kB / 356.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1983, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00192/0.2002, allocations: 2.356 MB / 410.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007147/0.201, allocations: 0.6765 MB / 411.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.711e-05/0.2011, allocations: 7.938 kB / 411.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.296e-05/0.2012, allocations: 28.52 kB / 411.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.2013, allocations: 76.69 kB / 411.3 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001824/0.2015, allocations: 65.56 kB / 411.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.2017, allocations: 322.6 kB / 411.7 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.2019, allocations: 66.91 kB / 411.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.733e-05/0.202, allocations: 111.5 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2021, allocations: 135.4 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.335e-05/0.2021, allocations: 12 kB / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.539e-05/0.2022, allocations: 16 kB / 412 MB, free: 23.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.2022, allocations: 55.05 kB / 412.1 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.601e-05/0.2023, allocations: 149 kB / 412.2 MB, free: 23.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.2025, allocations: 236.6 kB / 412.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2025, allocations: 0 / 412.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2025, allocations: 0 / 412.4 MB, free: 23.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.988e-06/0.2025, allocations: 0 / 412.4 MB, free: 23.4 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.0008867/0.2034, allocations: 0.6117 MB / 413 MB, free: 22.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.2034, allocations: 16.03 kB / 413.1 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.198e-05/0.2035, allocations: 50.73 kB / 413.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.2035, allocations: 32.56 kB / 413.1 MB, free: 22.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.2037, allocations: 283.6 kB / 413.4 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.2038, allocations: 16.81 kB / 413.4 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.2038, allocations: 16.38 kB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.2044, allocations: 293.9 kB / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.2044, allocations: 0 / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.2044, allocations: 4 kB / 413.7 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2044, allocations: 4 kB / 413.7 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006473/0.2051, allocations: 277.5 kB / 414 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.2063, allocations: 0.9754 MB / 415 MB, free: 20.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007347/0.207, allocations: 266.6 kB / 415.3 MB, free: 20.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.2073, allocations: 124.7 kB / 415.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.2074, allocations: 0 / 415.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004327/0.2078, allocations: 201.6 kB / 415.6 MB, free: 20.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.223e-06/0.2078, allocations: 0 / 415.6 MB, free: 20.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002084/0.2099, allocations: 0.7287 MB / 416.3 MB, free: 19.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.21, allocations: 110.8 kB / 416.4 MB, free: 19.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.2102, allocations: 270.5 kB / 416.7 MB, free: 18.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2102, allocations: 37.69 kB / 416.7 MB, free: 18.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.925e-05/0.2103, allocations: 175.8 kB / 416.9 MB, free: 18.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.2103, allocations: 39.45 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.2103, allocations: 4 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.306e-05/0.2104, allocations: 334.8 kB / 417.2 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.2107, allocations: 115.9 kB / 417.4 MB, free: 18.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.2111, allocations: 198.1 kB / 417.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005996/0.2117, allocations: 314 kB / 417.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2117, allocations: 0 / 417.9 MB, free: 17.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001066/0.2128, allocations: 491.1 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2128, allocations: 37.69 kB / 418.4 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2128, allocations: 4 kB / 418.4 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003088/0.2131, allocations: 84.86 kB / 418.5 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.2133, allocations: 48.12 kB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.2154, allocations: 1.85 MB / 420.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.2157, allocations: 67.78 kB / 420.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2157, allocations: 19.98 kB / 420.4 MB, free: 14.85 MB / 298.7 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 ($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 (21): * Single equations (assignments): 19 * 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 0.0001091/0.2158, allocations: 133.8 kB / 420.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.2159, allocations: 23.72 kB / 420.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.536e-05/0.2159, allocations: 33.83 kB / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2159, allocations: 0 / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.2159, allocations: 3.938 kB / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2159, allocations: 0 / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.2161, allocations: 293.4 kB / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2161, allocations: 0 / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.2162, allocations: 27.97 kB / 421 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002308/0.2165, allocations: 84.8 kB / 421 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2165, allocations: 0 / 421 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001635/0.2181, allocations: 1.768 MB / 422.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.2182, allocations: 0 / 422.8 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009171/0.2191, allocations: 401.4 kB / 423.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.2191, allocations: 104.9 kB / 423.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.2192, allocations: 8 kB / 423.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.2194, allocations: 47.91 kB / 423.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.2195, allocations: 23.91 kB / 423.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.2195, allocations: 3.984 kB / 423.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001259/0.2196, allocations: 194 kB / 423.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2197, allocations: 3.938 kB / 423.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003472/0.22, allocations: 63.91 kB / 423.6 MB, free: 11.43 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.001102/0.2211, allocations: 0.9335 MB / 424.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.2222, allocations: 0.5123 MB / 425.1 MB, free: 9.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2222, allocations: 4.062 kB / 425.1 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.2226, allocations: 246.5 kB / 425.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.2229, allocations: 47.91 kB / 425.4 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.2274, allocations: 2.246 MB / 427.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.2275, allocations: 0.748 MB / 428.4 MB, free: 6.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2276, allocations: 75.41 kB / 428.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2277, allocations: 0 / 428.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.89/3.118, allocations: 4.72 MB / 433.2 MB, free: 1.727 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.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