Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.0015/0.0015, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001577/0.001577, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.433/1.433, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 55.94 kB / 373 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09645, allocations: 53.34 MB / 426.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004483/0.1009, allocations: 2.907 MB / 429.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.1024, allocations: 0.7478 MB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002221/0.1026, allocations: 8 kB / 430 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.1028, allocations: 51.5 kB / 430.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.103, allocations: 99.19 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.1033, allocations: 103.8 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004294/0.1038, allocations: 394.5 kB / 430.7 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.104, allocations: 91.94 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.1042, allocations: 151.4 kB / 430.9 MB, free: 160 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2018/0.3059, allocations: 179.6 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.3061, allocations: 36.62 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3062, allocations: 36.81 kB / 431.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.847e-05/0.3063, allocations: 71.81 kB / 431.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002155/0.3065, allocations: 169.9 kB / 431.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005869/0.3071, allocations: 393.6 kB / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3071, allocations: 0 / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3071, allocations: 0.9062 kB / 431.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3071, allocations: 3.938 kB / 431.8 MB, free: 7.812 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001287/0.3084, allocations: 0.6933 MB / 432.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3085, allocations: 10.38 kB / 432.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.043e-05/0.3085, allocations: 58.97 kB / 432.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.3086, allocations: 39.14 kB / 432.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.309, allocations: 296.8 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3091, allocations: 18.97 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.208e-05/0.3091, allocations: 27.2 kB / 432.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.3098, allocations: 321.2 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3098, allocations: 0.9062 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.3098, allocations: 12.2 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3098, allocations: 9.906 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007616/0.3106, allocations: 273.5 kB / 433.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001607/0.3122, allocations: 1.137 MB / 434.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008112/0.313, allocations: 198.1 kB / 434.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003149/0.3133, allocations: 87.28 kB / 434.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.3134, allocations: 1.875 kB / 434.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004226/0.3138, allocations: 163.2 kB / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.064e-06/0.3138, allocations: 1.031 kB / 435.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001237/0.315, allocations: 412.1 kB / 435.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.315, allocations: 83.83 kB / 435.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/0.3154, allocations: 332.8 kB / 435.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3154, allocations: 27.58 kB / 435.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3155, allocations: 216 kB / 436.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.3155, allocations: 35.06 kB / 436.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.854e-05/0.3156, allocations: 59.12 kB / 436.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.3157, allocations: 337.1 kB / 436.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.316, allocations: 99.48 kB / 436.7 MB, free: 5.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.3164, allocations: 210.9 kB / 436.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/0.3171, allocations: 331.4 kB / 437.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3171, allocations: 2.094 kB / 437.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009284/0.318, allocations: 402.4 kB / 437.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.3181, allocations: 33.94 kB / 437.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3181, allocations: 4.875 kB / 437.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.3182, allocations: 37.52 kB / 437.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.3185, allocations: 61.75 kB / 437.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007275/0.3192, allocations: 1.407 MB / 439.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.3196, allocations: 62.83 kB / 439.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.3196, allocations: 14.58 kB / 439.2 MB, free: 3.582 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001113/0.3197, allocations: 142.3 kB / 439.3 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.3197, allocations: 28.66 kB / 439.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.875e-05/0.3198, allocations: 29.95 kB / 439.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3198, allocations: 3.297 kB / 439.4 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.3198, allocations: 3.938 kB / 439.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3198, allocations: 1.844 kB / 439.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003706/0.3202, allocations: 453.9 kB / 439.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3202, allocations: 0 / 439.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001812/0.3204, allocations: 31.27 kB / 439.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.475e-05/0.3205, allocations: 27.61 kB / 439.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.3205, allocations: 8.766 kB / 439.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006405/0.3211, allocations: 1.397 MB / 441.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3211, allocations: 0 / 441.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007532/0.3219, allocations: 276.6 kB / 441.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.3219, allocations: 107.2 kB / 441.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.322, allocations: 9.297 kB / 441.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3222, allocations: 26.5 kB / 441.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.28e-05/0.3223, allocations: 23.84 kB / 441.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.3223, allocations: 7.562 kB / 441.7 MB, free: 1.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.3225, allocations: 226.8 kB / 442 MB, free: 1.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3225, allocations: 0 / 442 MB, free: 1.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003387/0.3228, allocations: 77.62 kB / 442 MB, free: 1.426 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009095/0.3237, allocations: 0.8027 MB / 442.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009413/0.3247, allocations: 403.3 kB / 443.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3247, allocations: 0 / 443.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/0.3251, allocations: 221.3 kB / 443.5 MB, free: 416 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.3255, allocations: 49.17 kB / 443.5 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/0.3307, allocations: 3.149 MB / 446.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.3311, allocations: 0.7538 MB / 447.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3313, allocations: 32.92 kB / 447.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.3314, allocations: 85.52 kB / 447.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3314, allocations: 1.094 kB / 447.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3688, allocations: 6.136 MB / 453.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.898/10.27, allocations: 12.64 kB / 453.7 MB, free: 12.52 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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: 12.567038553068414]