Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002061/0.002061, allocations: 165.7 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 177.2 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 272.4 MB, free: 1.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.684e-05/2.851e-05, allocations: 2.312 kB / 272.4 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.006819/0.006847, allocations: 2.601 MB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.009168, allocations: 0.6893 MB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002267/0.009394, allocations: 11.94 kB / 275.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.009635, allocations: 47.56 kB / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.01005, allocations: 91.25 kB / 275.8 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.0105, allocations: 99.75 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007383/0.01124, allocations: 358.4 kB / 276.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.01149, allocations: 68.81 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005036/0.01199, allocations: 199.5 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.01231, allocations: 111.7 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.86e-05/0.01241, allocations: 32 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.986e-05/0.0125, allocations: 28 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.01262, allocations: 67.69 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.01288, allocations: 103.7 kB / 276.9 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006713/0.01355, allocations: 330.9 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.01355, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.01355, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.01356, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.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.002087/0.01565, allocations: 0.5742 MB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.0157, allocations: 8.031 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.01589, allocations: 48.75 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006335/0.01652, allocations: 225.2 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.01656, allocations: 20.81 kB / 278 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.01663, allocations: 20.38 kB / 278.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.01779, allocations: 322.7 kB / 278.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.0178, allocations: 192 / 278.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.484e-05/0.01786, allocations: 16.36 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.01787, allocations: 11.94 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.01917, allocations: 241.8 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.02194, allocations: 0.8136 MB / 279.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.02343, allocations: 230.5 kB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000589/0.02402, allocations: 100.8 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.02405, allocations: 4 kB / 279.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007845/0.02483, allocations: 229.2 kB / 280 MB, free: 9.914 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.02483, allocations: 4 kB / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.003648/0.02848, allocations: 0.5799 MB / 280.6 MB, free: 9.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.02861, allocations: 102.8 kB / 280.7 MB, free: 9.195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005038/0.02911, allocations: 265.8 kB / 281 MB, free: 8.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.02917, allocations: 29.7 kB / 281 MB, free: 8.891 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002479/0.02941, allocations: 188.1 kB / 281.2 MB, free: 8.699 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.71e-05/0.0295, allocations: 43.62 kB / 281.2 MB, free: 8.656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.02965, allocations: 45.7 kB / 281.3 MB, free: 8.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002606/0.02991, allocations: 334.8 kB / 281.6 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006425/0.03056, allocations: 129.6 kB / 281.7 MB, free: 8.137 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005981/0.03115, allocations: 264.2 kB / 282 MB, free: 7.824 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/0.03195, allocations: 291.4 kB / 282.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.03195, allocations: 0 / 282.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001377/0.03333, allocations: 485.4 kB / 282.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.264e-05/0.03338, allocations: 33.69 kB / 282.8 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.03339, allocations: 4 kB / 282.8 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006814/0.03407, allocations: 140.8 kB / 282.9 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.03429, allocations: 47.89 kB / 282.9 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003177/0.03746, allocations: 1.867 MB / 284.8 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.0378, allocations: 47.84 kB / 284.9 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.03783, allocations: 19.88 kB / 284.9 MB, free: 4.742 MB / 266.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 (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.0001726/0.038, allocations: 137 kB / 285 MB, free: 4.602 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.227e-05/0.03806, allocations: 31.86 kB / 285 MB, free: 4.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.563e-05/0.03812, allocations: 21.77 kB / 285.1 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.03812, allocations: 0 / 285.1 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.03812, allocations: 4 kB / 285.1 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.03813, allocations: 3.984 kB / 285.1 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.03842, allocations: 205.1 kB / 285.3 MB, free: 4.309 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.03842, allocations: 4.125 kB / 285.3 MB, free: 4.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.03859, allocations: 27.91 kB / 285.3 MB, free: 4.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005969/0.03919, allocations: 132.7 kB / 285.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.03921, allocations: 4 kB / 285.4 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/0.04194, allocations: 1.782 MB / 287.2 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.04194, allocations: 3.984 kB / 287.2 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.04309, allocations: 356.6 kB / 287.6 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.04315, allocations: 31.78 kB / 287.6 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.0432, allocations: 4 kB / 287.6 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.04347, allocations: 31.95 kB / 287.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.63e-05/0.04355, allocations: 27.91 kB / 287.7 MB, free: 1.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.04357, allocations: 12.12 kB / 287.7 MB, free: 1.785 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002147/0.04379, allocations: 181.2 kB / 287.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04379, allocations: 0 / 287.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004527/0.04424, allocations: 71.89 kB / 287.9 MB, free: 1.539 MB / 266.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 (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.0001602/0.0444, allocations: 111.2 kB / 288 MB, free: 1.422 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001429/0.04583, allocations: 0.4911 MB / 288.5 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.04583, allocations: 4.062 kB / 288.5 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005401/0.04637, allocations: 226.4 kB / 288.8 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.0467, allocations: 44.33 kB / 288.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.04984, allocations: 0.8919 MB / 289.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.05, allocations: 141.8 kB / 289.8 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000106/0.0501, allocations: 18.3 kB / 289.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.05017, allocations: 28.5 kB / 289.9 MB, free: 15.49 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.05017, allocations: 0 / 289.9 MB, free: 15.49 MB / 282.7 MB Notification: Performance of Templates: time 0.008987/0.05916, allocations: 3.86 MB / 293.7 MB, free: 11.7 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.593311161035672]