Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.001308/0.001308, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001528/0.001528, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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.44/1.44, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 55.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2747, allocations: 53.36 MB / 431.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005231/0.2799, allocations: 2.803 MB / 434 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.2815, allocations: 0.7168 MB / 434.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002677/0.2818, allocations: 7.938 kB / 434.7 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2819, allocations: 43.58 kB / 434.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.2822, allocations: 91.25 kB / 434.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2825, allocations: 99.81 kB / 434.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.2829, allocations: 358.5 kB / 435.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.2831, allocations: 60.89 kB / 435.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.2833, allocations: 139.4 kB / 435.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.2835, allocations: 147.4 kB / 435.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.213e-05/0.2835, allocations: 28 kB / 435.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.941e-05/0.2836, allocations: 31.94 kB / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.474e-05/0.2837, allocations: 59.83 kB / 435.7 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.2838, allocations: 155.2 kB / 435.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.2842, allocations: 323.1 kB / 436.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.2842, allocations: 0 / 436.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2842, allocations: 7.938 kB / 436.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2842, allocations: 0 / 436.2 MB, free: 1.926 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.001211/0.2854, allocations: 0.5702 MB / 436.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.2855, allocations: 8.031 kB / 436.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.227e-05/0.2856, allocations: 58.67 kB / 436.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.826e-05/0.2856, allocations: 32.75 kB / 436.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.286, allocations: 229.9 kB / 437.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.2861, allocations: 16.81 kB / 437.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.2861, allocations: 16.38 kB / 437.1 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006982/0.2868, allocations: 281.9 kB / 437.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.2868, allocations: 0 / 437.4 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.2868, allocations: 8 kB / 437.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2868, allocations: 4 kB / 437.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007621/0.2876, allocations: 253.5 kB / 437.7 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.2892, allocations: 0.9018 MB / 438.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008207/0.29, allocations: 242.5 kB / 438.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003218/0.2904, allocations: 93 kB / 438.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.2904, allocations: 7.938 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004674/0.2909, allocations: 177.8 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.2909, allocations: 0 / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002219/0.2931, allocations: 0.576 MB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.2932, allocations: 106.8 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.2935, allocations: 265.8 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.2935, allocations: 29.7 kB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.2936, allocations: 188 kB / 440.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.835e-05/0.2937, allocations: 39.69 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.187e-05/0.2938, allocations: 45.66 kB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2939, allocations: 334.8 kB / 440.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.2943, allocations: 99.91 kB / 440.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.2946, allocations: 166.1 kB / 440.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006666/0.2953, allocations: 268.4 kB / 441.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2953, allocations: 0 / 441.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001169/0.2965, allocations: 434.3 kB / 441.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.921e-05/0.2965, allocations: 29.7 kB / 441.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2965, allocations: 4 kB / 441.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.2969, allocations: 84.86 kB / 441.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.2971, allocations: 39.91 kB / 441.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.2997, allocations: 1.847 MB / 443.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.3, allocations: 51.94 kB / 443.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.942e-05/0.3, allocations: 8 kB / 443.7 MB, free: 10.04 MB / 350.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.0001488/0.3002, allocations: 140.7 kB / 443.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.3002, allocations: 27.73 kB / 443.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.3003, allocations: 29.77 kB / 443.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3003, allocations: 4 kB / 443.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.3003, allocations: 0 / 443.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3003, allocations: 3.984 kB / 443.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.3005, allocations: 268.5 kB / 444.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3005, allocations: 0 / 444.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.3007, allocations: 32.09 kB / 444.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000257/0.3009, allocations: 76.73 kB / 444.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.301, allocations: 8 kB / 444.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.3032, allocations: 1.65 MB / 445.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3032, allocations: 0 / 445.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3042, allocations: 357 kB / 446.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.105e-05/0.3043, allocations: 35.72 kB / 446.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/0.3043, allocations: 0 / 446.3 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.3046, allocations: 40.14 kB / 446.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.269e-05/0.3046, allocations: 19.97 kB / 446.3 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.3046, allocations: 8 kB / 446.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001981/0.3048, allocations: 189.2 kB / 446.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3048, allocations: 0 / 446.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003619/0.3052, allocations: 75.89 kB / 446.6 MB, free: 6.914 MB / 350.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.001382/0.3066, allocations: 0.894 MB / 447.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000985/0.3076, allocations: 393.8 kB / 447.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3076, allocations: 0 / 447.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004804/0.3081, allocations: 231 kB / 448.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.3084, allocations: 44.41 kB / 448.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005227/0.3136, allocations: 2.941 MB / 451.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.314, allocations: 0.7518 MB / 451.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.3141, allocations: 22.28 kB / 451.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.3143, allocations: 71.42 kB / 451.9 MB, free: 1.348 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3143, allocations: 4 kB / 451.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04174/0.356, allocations: 6.546 MB / 458.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.01, allocations: 3.984 kB / 458.5 MB, free: 10.98 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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: 15.41887667402625]