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.001615/0.001615, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001997/0.001997, allocations: 209.5 kB / 23.73 MB, free: 4.523 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.432/1.432, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001523/0.001523, allocations: 51.86 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2794, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004649/0.2841, allocations: 2.718 MB / 433.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.2857, allocations: 0.705 MB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002814/0.286, allocations: 7.938 kB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002218/0.2862, allocations: 51.5 kB / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.2865, allocations: 103.2 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.2869, allocations: 111.8 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005759/0.2875, allocations: 386.5 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.2877, allocations: 102.1 kB / 435.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.288, allocations: 159.4 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002698/0.2883, allocations: 167.3 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.416e-05/0.2883, allocations: 40 kB / 435.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.716e-05/0.2884, allocations: 40 kB / 435.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.358e-05/0.2885, allocations: 71.77 kB / 435.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.2887, allocations: 147.3 kB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005132/0.2892, allocations: 390.4 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2892, allocations: 4 kB / 436.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2892, allocations: 3.938 kB / 436.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.2892, allocations: 0 / 436.3 MB, free: 1.438 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001517/0.2907, allocations: 0.6208 MB / 436.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.2908, allocations: 8.031 kB / 436.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.769e-05/0.2908, allocations: 58.73 kB / 437 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.91e-05/0.2909, allocations: 36.7 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.2915, allocations: 241.9 kB / 437.2 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.2915, allocations: 16.88 kB / 437.3 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/0.2915, allocations: 24.38 kB / 437.3 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007392/0.2923, allocations: 330.7 kB / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2923, allocations: 0 / 437.6 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.2923, allocations: 8 kB / 437.6 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.2923, allocations: 12 kB / 437.6 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008151/0.2931, allocations: 269.8 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.295, allocations: 1.021 MB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.2958, allocations: 202.5 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.2961, allocations: 88.78 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2962, allocations: 0 / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/0.2966, allocations: 157.1 kB / 439.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.2966, allocations: 4 kB / 439.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001247/0.2979, allocations: 334.1 kB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002023/0.2981, allocations: 85.05 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005533/0.2986, allocations: 332.5 kB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.2986, allocations: 25.7 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.2988, allocations: 211.9 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.2989, allocations: 43.67 kB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.299, allocations: 49.94 kB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002698/0.2993, allocations: 334.8 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.2996, allocations: 133.8 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.3001, allocations: 237.4 kB / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007419/0.3008, allocations: 335.9 kB / 441.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3008, allocations: 0 / 441.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001017/0.3018, allocations: 448.4 kB / 441.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.671e-05/0.3019, allocations: 37.69 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3019, allocations: 4 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.3021, allocations: 28.84 kB / 441.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.3024, allocations: 68.03 kB / 442 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.3036, allocations: 1.299 MB / 443.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/0.304, allocations: 59.69 kB / 443.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.304, allocations: 16.53 kB / 443.4 MB, free: 9.816 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.0001583/0.3041, allocations: 144.4 kB / 443.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.3042, allocations: 31.86 kB / 443.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.3042, allocations: 26.61 kB / 443.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3042, allocations: 3.938 kB / 443.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3042, allocations: 3.938 kB / 443.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3042, allocations: 0 / 443.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004616/0.3047, allocations: 390.3 kB / 444 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3047, allocations: 0 / 444 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.3049, allocations: 35.98 kB / 444 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001033/0.305, allocations: 36.72 kB / 444 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.305, allocations: 0 / 444 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.306, allocations: 1.283 MB / 445.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.306, allocations: 3.938 kB / 445.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000742/0.3067, allocations: 278.5 kB / 445.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.3068, allocations: 27.83 kB / 445.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.3068, allocations: 4 kB / 445.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.3071, allocations: 27.97 kB / 445.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.946e-05/0.3071, allocations: 19.91 kB / 445.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3071, allocations: 8 kB / 445.7 MB, free: 7.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002478/0.3074, allocations: 227.1 kB / 445.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3074, allocations: 0 / 445.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.3077, allocations: 67.89 kB / 446 MB, free: 7.023 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.001068/0.3088, allocations: 0.8168 MB / 446.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009907/0.3098, allocations: 435.9 kB / 447.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3098, allocations: 4 kB / 447.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.3103, allocations: 210.5 kB / 447.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.3107, allocations: 45.69 kB / 447.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005206/0.3159, allocations: 3.263 MB / 450.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.316, allocations: 146.9 kB / 450.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.3161, allocations: 30.97 kB / 450.9 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.3163, allocations: 87.41 kB / 451 MB, free: 1.684 MB / 350.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3163, allocations: 4 kB / 451 MB, free: 1.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03677/0.3531, allocations: 6.982 MB / 458 MB, free: 10.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.7, allocations: 3.984 kB / 458 MB, free: 10.89 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.044631980999839]