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.001278/0.001278, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 59.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2455, allocations: 50.55 MB / 408.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.004185/0.2498, allocations: 2.773 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.251, allocations: 0.705 MB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.2512, allocations: 8 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.2513, allocations: 47.56 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.2515, allocations: 87.25 kB / 412.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002546/0.2518, allocations: 91.83 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000396/0.2522, allocations: 358.5 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.2524, allocations: 84.7 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.2526, allocations: 135.4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000222/0.2528, allocations: 151.4 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.2528, allocations: 28 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.516e-05/0.2529, allocations: 28 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.245e-05/0.253, allocations: 63.77 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.2532, allocations: 147.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.2536, allocations: 321.8 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2536, allocations: 4 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2536, allocations: 0 / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2536, allocations: 4 kB / 413.9 MB, free: 12.45 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.001308/0.2549, allocations: 0.6532 MB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.255, allocations: 8.031 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.989e-05/0.2551, allocations: 54.73 kB / 414.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.468e-05/0.2552, allocations: 32.75 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.2556, allocations: 279.8 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.2556, allocations: 12.81 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.2557, allocations: 24.38 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.2563, allocations: 277.9 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.2563, allocations: 7.969 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.2564, allocations: 8 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.2564, allocations: 4 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000795/0.2572, allocations: 245.5 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.2588, allocations: 0.9405 MB / 416.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008336/0.2597, allocations: 250.5 kB / 416.6 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003411/0.26, allocations: 96.78 kB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.26, allocations: 224 / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004792/0.2605, allocations: 189.4 kB / 416.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.172e-06/0.2605, allocations: 0 / 416.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002406/0.2629, allocations: 0.6591 MB / 417.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.263, allocations: 102.8 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.2633, allocations: 270.5 kB / 417.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.2634, allocations: 33.7 kB / 418 MB, free: 8.059 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.2635, allocations: 172.2 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.2636, allocations: 47.62 kB / 418.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.192e-05/0.2637, allocations: 49.66 kB / 418.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.2638, allocations: 330.8 kB / 418.6 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.2642, allocations: 95.92 kB / 418.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.2646, allocations: 171.7 kB / 418.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007111/0.2653, allocations: 276.3 kB / 419.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2653, allocations: 0 / 419.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001255/0.2666, allocations: 439.7 kB / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.2666, allocations: 29.7 kB / 419.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2666, allocations: 4 kB / 419.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/0.267, allocations: 80.86 kB / 419.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.2672, allocations: 39.91 kB / 419.7 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002921/0.2702, allocations: 1.947 MB / 421.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.2705, allocations: 51.91 kB / 421.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.2705, allocations: 8 kB / 421.7 MB, free: 4.109 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.0003016/0.2708, allocations: 141.8 kB / 421.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.2709, allocations: 27.8 kB / 421.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.94e-05/0.271, allocations: 21.83 kB / 421.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.271, allocations: 4 kB / 421.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.271, allocations: 4.125 kB / 421.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.271, allocations: 3.984 kB / 421.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.2713, allocations: 301.4 kB / 422.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2713, allocations: 4 kB / 422.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.2715, allocations: 19.97 kB / 422.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002915/0.2718, allocations: 84.73 kB / 422.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.2718, allocations: 0 / 422.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.2742, allocations: 1.746 MB / 424 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2743, allocations: 192 / 424 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.2754, allocations: 365.5 kB / 424.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.006e-05/0.2755, allocations: 104.8 kB / 424.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/0.2755, allocations: 15.94 kB / 424.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.2758, allocations: 31.95 kB / 424.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.2758, allocations: 23.97 kB / 424.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.2759, allocations: 4 kB / 424.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.2761, allocations: 190 kB / 424.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2761, allocations: 0 / 424.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003762/0.2765, allocations: 67.89 kB / 424.8 MB, free: 0.7344 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.001506/0.278, allocations: 0.9012 MB / 425.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.2791, allocations: 413.3 kB / 426.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.2791, allocations: 0 / 426.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004904/0.2796, allocations: 235 kB / 426.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.2799, allocations: 47.31 kB / 426.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005533/0.2855, allocations: 2.939 MB / 429.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.2859, allocations: 0.7518 MB / 430.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000105/0.286, allocations: 18.3 kB / 430.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.2861, allocations: 75.41 kB / 430.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2862, allocations: 4 kB / 430.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03386/0.32, allocations: 6.355 MB / 436.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.91, allocations: 11.12 kB / 436.5 MB, free: 4.949 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.1.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