Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00171/0.00171, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 213.4 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 230.5 MB / 257.4 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 67.89 kB / 377.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2737, allocations: 53.4 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004389/0.278, allocations: 2.959 MB / 434.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2795, allocations: 0.7323 MB / 434.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.2796, allocations: 7.938 kB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.2798, allocations: 55.44 kB / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.28, allocations: 107.1 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.2803, allocations: 91.89 kB / 435.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.2808, allocations: 398.3 kB / 435.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.281, allocations: 96.45 kB / 435.7 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000194/0.2812, allocations: 151.4 kB / 435.8 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002488/0.2815, allocations: 183.2 kB / 436 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.756e-05/0.2815, allocations: 36 kB / 436 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.2816, allocations: 40 kB / 436.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.2817, allocations: 75.7 kB / 436.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2818, allocations: 171.1 kB / 436.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004857/0.2823, allocations: 402.8 kB / 436.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2823, allocations: 0 / 436.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2823, allocations: 0 / 436.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.2823, allocations: 0 / 436.7 MB, free: 1.195 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001272/0.2836, allocations: 0.6092 MB / 437.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.2837, allocations: 8.031 kB / 437.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.204e-05/0.2837, allocations: 58.73 kB / 437.4 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.873e-05/0.2838, allocations: 36.75 kB / 437.4 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.2843, allocations: 251 kB / 437.6 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.2843, allocations: 17.03 kB / 437.7 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.2843, allocations: 28.38 kB / 437.7 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.2849, allocations: 282.2 kB / 438 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2849, allocations: 0 / 438 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.285, allocations: 12 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.285, allocations: 7.938 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006446/0.2856, allocations: 254.5 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.2874, allocations: 1.026 MB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/0.288, allocations: 170.6 kB / 439.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.2882, allocations: 76.8 kB / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.2882, allocations: 0 / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004388/0.2887, allocations: 153.8 kB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.012e-06/0.2887, allocations: 224 / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001/0.2897, allocations: 310.1 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.2898, allocations: 106.8 kB / 440.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.2901, allocations: 332.5 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.2902, allocations: 29.7 kB / 440.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2903, allocations: 212 kB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.2904, allocations: 47.61 kB / 440.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2905, allocations: 61.69 kB / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2906, allocations: 338.8 kB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.2909, allocations: 87.94 kB / 441.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003586/0.2913, allocations: 210 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005962/0.2919, allocations: 319.2 kB / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2919, allocations: 3.938 kB / 441.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008156/0.2927, allocations: 379.8 kB / 442 MB, free: 11.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.2927, allocations: 37.7 kB / 442.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.2927, allocations: 4 kB / 442.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.2929, allocations: 36.95 kB / 442.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.2931, allocations: 59.89 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.2943, allocations: 1.303 MB / 443.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003286/0.2947, allocations: 55.69 kB / 443.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.2947, allocations: 11.98 kB / 443.5 MB, free: 9.836 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: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001799/0.2949, allocations: 153.9 kB / 443.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.2949, allocations: 27.81 kB / 443.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.543e-05/0.295, allocations: 30.61 kB / 443.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.295, allocations: 0 / 443.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.295, allocations: 7.938 kB / 443.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.295, allocations: 0 / 443.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005038/0.2955, allocations: 434.2 kB / 444.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2955, allocations: 3.984 kB / 444.2 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.2956, allocations: 24.02 kB / 444.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.2957, allocations: 32.77 kB / 444.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.2957, allocations: 4 kB / 444.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.2968, allocations: 1.291 MB / 445.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2968, allocations: 0 / 445.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.2974, allocations: 265.9 kB / 445.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.2975, allocations: 27.84 kB / 445.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.2975, allocations: 0 / 445.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.2977, allocations: 31.97 kB / 445.8 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.2978, allocations: 23.89 kB / 445.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.2978, allocations: 8 kB / 445.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.2981, allocations: 227.1 kB / 446.1 MB, free: 7.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2981, allocations: 4 kB / 446.1 MB, free: 7.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.2985, allocations: 75.83 kB / 446.2 MB, free: 6.992 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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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.000991/0.2995, allocations: 0.793 MB / 447 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008782/0.3003, allocations: 385.8 kB / 447.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3003, allocations: 1 kB / 447.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.3007, allocations: 214.5 kB / 447.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.3011, allocations: 52.47 kB / 447.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00472/0.3058, allocations: 3.122 MB / 450.7 MB, free: 2.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.3062, allocations: 0.7561 MB / 451.5 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.3064, allocations: 34.97 kB / 451.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.3065, allocations: 91.41 kB / 451.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of SimCode: time 2.064e-06/0.3065, allocations: 7.938 kB / 451.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.3468, allocations: 6.658 MB / 458.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.67, allocations: 10.14 kB / 458.3 MB, free: 10.73 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.out.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.098474523001642]