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.001285/0.001285, allocations: 122.7 kB / 18.5 MB, free: 4.578 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.001399/0.001399, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.504/1.504, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.001818/0.001818, allocations: 63.91 kB / 373.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1244, allocations: 53.31 MB / 426.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004594/0.129, allocations: 2.915 MB / 429.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1306, allocations: 0.7478 MB / 430.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.1308, allocations: 7.938 kB / 430.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.131, allocations: 51.5 kB / 430.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.1312, allocations: 103.2 kB / 430.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.1316, allocations: 103.8 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.1321, allocations: 394.5 kB / 431 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1323, allocations: 91.94 kB / 431.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.1325, allocations: 155.4 kB / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1327, allocations: 167.2 kB / 431.4 MB, free: 232 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.087e-05/0.1328, allocations: 36 kB / 431.4 MB, free: 196 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.518e-05/0.1329, allocations: 36 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.096e-05/0.133, allocations: 79.69 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2495/0.3825, allocations: 162.7 kB / 431.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007615/0.3832, allocations: 398.7 kB / 432.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3832, allocations: 0.6562 kB / 432.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3832, allocations: 0 / 432.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.3832, allocations: 1.594 kB / 432.1 MB, free: 7.973 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.001479/0.3847, allocations: 0.6861 MB / 432.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.3848, allocations: 9.938 kB / 432.8 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.916e-05/0.3849, allocations: 62.94 kB / 432.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.628e-05/0.3849, allocations: 40.17 kB / 432.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.3854, allocations: 301.7 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.3855, allocations: 15.22 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.904e-05/0.3855, allocations: 24.59 kB / 433.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007371/0.3862, allocations: 326.3 kB / 433.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3863, allocations: 0 / 433.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.002e-05/0.3863, allocations: 13.06 kB / 433.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3863, allocations: 6.031 kB / 433.6 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007653/0.3871, allocations: 273 kB / 433.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3888, allocations: 1.133 MB / 435 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008294/0.3896, allocations: 207.6 kB / 435.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.3899, allocations: 84.95 kB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.39, allocations: 2.312 kB / 435.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004548/0.3904, allocations: 158.8 kB / 435.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3904, allocations: 0 / 435.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001289/0.3917, allocations: 415.7 kB / 435.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.3917, allocations: 84.09 kB / 435.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004369/0.3922, allocations: 329.1 kB / 436.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.3922, allocations: 31.27 kB / 436.3 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3924, allocations: 209.4 kB / 436.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.727e-05/0.3924, allocations: 36.98 kB / 436.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3925, allocations: 56.92 kB / 436.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3926, allocations: 337 kB / 436.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.393, allocations: 103.9 kB / 437 MB, free: 5.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/0.3934, allocations: 215.6 kB / 437.2 MB, free: 5.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007288/0.3941, allocations: 332.3 kB / 437.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.3941, allocations: 3.5 kB / 437.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001022/0.3952, allocations: 404.2 kB / 437.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.075e-05/0.3952, allocations: 38.91 kB / 438 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3952, allocations: 3.406 kB / 438 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.3954, allocations: 33.59 kB / 438 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/0.3957, allocations: 67.05 kB / 438.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008723/0.3966, allocations: 1.402 MB / 439.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.3969, allocations: 61.22 kB / 439.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.926e-05/0.397, allocations: 14.47 kB / 439.5 MB, free: 3.734 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.0001424/0.3971, allocations: 145.2 kB / 439.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.3972, allocations: 30.05 kB / 439.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.756e-05/0.3972, allocations: 29.33 kB / 439.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3972, allocations: 3.203 kB / 439.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.3972, allocations: 7.938 kB / 439.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.3972, allocations: 1.812 kB / 439.7 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004618/0.3977, allocations: 456 kB / 440.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3977, allocations: 0 / 440.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.3979, allocations: 29.67 kB / 440.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.996e-05/0.398, allocations: 32.91 kB / 440.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.398, allocations: 1.938 kB / 440.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000757/0.3987, allocations: 1.395 MB / 441.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3987, allocations: 0 / 441.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.3995, allocations: 276 kB / 441.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.3995, allocations: 109.1 kB / 442 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.3996, allocations: 2.047 kB / 442 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.3998, allocations: 36.42 kB / 442.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.3999, allocations: 22.95 kB / 442.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.3999, allocations: 6.75 kB / 442.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.4001, allocations: 231 kB / 442.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4001, allocations: 0 / 442.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004013/0.4005, allocations: 71.89 kB / 442.4 MB, free: 1.613 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.001118/0.4017, allocations: 0.8054 MB / 443.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.4028, allocations: 398.1 kB / 443.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4028, allocations: 1.125 kB / 443.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000492/0.4033, allocations: 218.4 kB / 443.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.4037, allocations: 53 kB / 443.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005628/0.4093, allocations: 3.151 MB / 447 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.4097, allocations: 0.7539 MB / 447.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.4099, allocations: 32.7 kB / 447.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.4101, allocations: 91.5 kB / 447.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4101, allocations: 4 kB / 447.9 MB, free: 13.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03513/0.4452, allocations: 6.125 MB / 454 MB, free: 12.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.69, allocations: 15.2 kB / 454 MB, free: 12.84 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 13.129122848622501]