Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001059/0.001059, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 55.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2549, allocations: 50.54 MB / 408.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003852/0.2588, allocations: 2.773 MB / 411.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.2601, allocations: 0.7051 MB / 412.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.2604, allocations: 7.938 kB / 412.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.2606, allocations: 39.58 kB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002603/0.2609, allocations: 87.25 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.2612, allocations: 99.8 kB / 412.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004754/0.2617, allocations: 358.5 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.2619, allocations: 88.69 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.2621, allocations: 135.4 kB / 413.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/0.2623, allocations: 147.4 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.789e-05/0.2624, allocations: 32 kB / 413.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.358e-05/0.2624, allocations: 28 kB / 413.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.2625, allocations: 67.75 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.2627, allocations: 147.2 kB / 413.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.263, allocations: 324.7 kB / 413.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.263, allocations: 4 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.263, allocations: 0 / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.2631, allocations: 0 / 413.8 MB, free: 12.62 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.001203/0.2643, allocations: 0.6418 MB / 414.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2643, allocations: 8.031 kB / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.776e-05/0.2644, allocations: 54.73 kB / 414.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.395e-05/0.2645, allocations: 28.56 kB / 414.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.2649, allocations: 279.7 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2649, allocations: 16.81 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.2649, allocations: 20.38 kB / 414.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006063/0.2656, allocations: 277.9 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2656, allocations: 0 / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.2656, allocations: 12 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.2656, allocations: 4 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006914/0.2663, allocations: 249.5 kB / 415.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001491/0.2678, allocations: 0.9441 MB / 416.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007725/0.2686, allocations: 234.6 kB / 416.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002977/0.2689, allocations: 104.7 kB / 416.7 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.269, allocations: 4.219 kB / 416.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004545/0.2694, allocations: 189.4 kB / 416.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.2694, allocations: 0 / 416.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002192/0.2716, allocations: 0.6511 MB / 417.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.2717, allocations: 106.8 kB / 417.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.272, allocations: 270.6 kB / 417.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.272, allocations: 29.7 kB / 417.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.2722, allocations: 191.7 kB / 418.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/0.2722, allocations: 35.45 kB / 418.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.288e-05/0.2723, allocations: 49.61 kB / 418.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2724, allocations: 338.8 kB / 418.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.2728, allocations: 95.91 kB / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003768/0.2732, allocations: 186.1 kB / 418.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000645/0.2738, allocations: 294 kB / 419.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2738, allocations: 0 / 419.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00112/0.275, allocations: 450.3 kB / 419.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.275, allocations: 33.69 kB / 419.5 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.275, allocations: 8.062 kB / 419.5 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000352/0.2754, allocations: 84.78 kB / 419.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.2756, allocations: 43.91 kB / 419.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/0.2783, allocations: 1.994 MB / 421.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003153/0.2786, allocations: 59.75 kB / 421.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.2787, allocations: 8 kB / 421.7 MB, free: 4.172 MB / 334.1 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 (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 (21): * Single equations (assignments): 19 * 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.0001659/0.2788, allocations: 141.7 kB / 421.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.2789, allocations: 31.64 kB / 421.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.2789, allocations: 25.84 kB / 421.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2789, allocations: 4 kB / 421.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.279, allocations: 0 / 421.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.279, allocations: 3.984 kB / 421.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/0.2792, allocations: 293.4 kB / 422.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.2792, allocations: 0 / 422.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.2794, allocations: 20.09 kB / 422.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002519/0.2796, allocations: 88.73 kB / 422.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.2797, allocations: 3.938 kB / 422.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.2819, allocations: 1.919 MB / 424.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2819, allocations: 0 / 424.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009564/0.2828, allocations: 357.4 kB / 424.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.954e-05/0.2829, allocations: 100.8 kB / 424.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.827e-05/0.283, allocations: 7.938 kB / 424.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.2832, allocations: 39.95 kB / 424.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.443e-05/0.2833, allocations: 15.98 kB / 424.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.2833, allocations: 0 / 424.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.2835, allocations: 198 kB / 424.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2835, allocations: 0 / 424.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.2839, allocations: 67.91 kB / 425 MB, free: 0.6406 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.001269/0.2852, allocations: 0.8973 MB / 425.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.2864, allocations: 485.8 kB / 426.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2864, allocations: 0 / 426.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004399/0.2869, allocations: 235 kB / 426.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.2872, allocations: 59.58 kB / 426.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.2938, allocations: 3.426 MB / 430.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.2941, allocations: 0.744 MB / 430.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.2943, allocations: 30.22 kB / 430.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.2944, allocations: 75.41 kB / 430.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2944, allocations: 0 / 430.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.324, allocations: 6.519 MB / 437.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.28, allocations: 3.625 kB / 437.5 MB, free: 4.164 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.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