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.0008442/0.0008442, allocations: 91.12 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008128/0.0008128, allocations: 203.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.7 MB / 246.8 MB, free: 9.715 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001975/0.0001974, allocations: 8 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07904, allocations: 51.53 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.002494/0.08157, allocations: 2.45 MB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.08273, allocations: 0.7013 MB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.08288, allocations: 4 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.083, allocations: 35.7 kB / 362.6 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001904/0.08321, allocations: 79.44 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.08345, allocations: 75.88 kB / 362.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.08377, allocations: 342.5 kB / 363.1 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.08393, allocations: 65.16 kB / 363.1 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.08409, allocations: 119.5 kB / 363.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.08425, allocations: 135.3 kB / 363.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.612e-05/0.0843, allocations: 12 kB / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.08434, allocations: 20 kB / 363.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.085e-05/0.0844, allocations: 51.75 kB / 363.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.08453, allocations: 156.9 kB / 363.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.08479, allocations: 303.1 kB / 363.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.0848, allocations: 0 / 363.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.08481, allocations: 0 / 363.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.08482, allocations: 3.938 kB / 363.9 MB, free: 8.414 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.0009953/0.08582, allocations: 0.6146 MB / 364.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.08586, allocations: 12.03 kB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.337e-05/0.08592, allocations: 50.73 kB / 364.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.579e-05/0.08598, allocations: 28.66 kB / 364.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.08626, allocations: 279.6 kB / 364.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.08629, allocations: 16.81 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.08633, allocations: 20.31 kB / 364.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.08693, allocations: 293.9 kB / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.08695, allocations: 0 / 365.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.08698, allocations: 12 kB / 365.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.08699, allocations: 4 kB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007232/0.08772, allocations: 277.6 kB / 365.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.08912, allocations: 0.9636 MB / 366.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008021/0.08994, allocations: 270.6 kB / 366.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.09028, allocations: 120.8 kB / 366.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.09031, allocations: 3.984 kB / 366.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004532/0.09077, allocations: 202 kB / 367 MB, free: 5.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.605e-06/0.09078, allocations: 3.938 kB / 367 MB, free: 5.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002257/0.09305, allocations: 0.7332 MB / 367.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.0931, allocations: 102.8 kB / 367.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.09336, allocations: 282.5 kB / 368.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.09339, allocations: 25.7 kB / 368.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.09349, allocations: 183.7 kB / 368.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.09353, allocations: 35.45 kB / 368.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/0.09358, allocations: 29.7 kB / 368.4 MB, free: 3.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.566e-05/0.09368, allocations: 334.8 kB / 368.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00034/0.09402, allocations: 111.9 kB / 368.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/0.09441, allocations: 199.2 kB / 369.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006845/0.0951, allocations: 316.6 kB / 369.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.09512, allocations: 4 kB / 369.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001183/0.09631, allocations: 483.6 kB / 369.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.09635, allocations: 33.7 kB / 369.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.09636, allocations: 4 kB / 369.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.0967, allocations: 84.86 kB / 370 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.0969, allocations: 51.91 kB / 370 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.148/0.2449, allocations: 1.866 MB / 371.9 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.2453, allocations: 58.19 kB / 371.9 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.2453, allocations: 11.45 kB / 371.9 MB, free: 17.88 MB / 302.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.0001284/0.2455, allocations: 147.2 kB / 372.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.2455, allocations: 21.36 kB / 372.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.254e-05/0.2456, allocations: 31.48 kB / 372.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.2456, allocations: 2.172 kB / 372.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2456, allocations: 0 / 372.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2456, allocations: 1.406 kB / 372.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.2458, allocations: 298.4 kB / 372.4 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2458, allocations: 0 / 372.4 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001402/0.246, allocations: 27.58 kB / 372.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.2463, allocations: 85.3 kB / 372.5 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.2463, allocations: 4.984 kB / 372.5 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/0.2481, allocations: 1.76 MB / 374.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2481, allocations: 1.75 kB / 374.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.2491, allocations: 404.8 kB / 374.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.2492, allocations: 101.8 kB / 374.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.2492, allocations: 5.906 kB / 374.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.2494, allocations: 48.28 kB / 374.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.2495, allocations: 18.09 kB / 374.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.2495, allocations: 4.656 kB / 374.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001597/0.2497, allocations: 192.7 kB / 375.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2497, allocations: 3 kB / 375.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003573/0.25, allocations: 73.86 kB / 375.1 MB, free: 15.99 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.0012/0.2513, allocations: 0.9308 MB / 376.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0012/0.2525, allocations: 0.5108 MB / 376.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2525, allocations: 0 / 376.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004606/0.2529, allocations: 246.5 kB / 376.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.2533, allocations: 46.14 kB / 376.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006322/0.2596, allocations: 3.705 MB / 380.6 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.2598, allocations: 0.7458 MB / 381.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.2599, allocations: 28.86 kB / 381.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.26, allocations: 77.7 kB / 381.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.26, allocations: 1.094 kB / 381.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01572/0.2757, allocations: 5.7 MB / 387.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001174/0.2759, allocations: 258.6 kB / 387.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.026, allocations: 0 / 387.4 MB, free: 11.56 MB / 302.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