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.001098/0.001098, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008474/0.0008474, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8625/0.8625, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.495e-06/2.495e-06, allocations: 4 kB / 324.6 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.211e-05, allocations: 4.531 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002924/0.002946, allocations: 2.716 MB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.003996, allocations: 0.7089 MB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.004118, allocations: 11.94 kB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.004238, allocations: 47.5 kB / 328.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.004377, allocations: 99.12 kB / 328.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.004634, allocations: 111.7 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.004961, allocations: 410.2 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.005127, allocations: 88.45 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.005335, allocations: 223.5 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.005464, allocations: 135.6 kB / 329.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.005503, allocations: 36 kB / 329.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.927e-05/0.005532, allocations: 36 kB / 329.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.51e-05/0.005577, allocations: 75.69 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.005661, allocations: 119.7 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003941/0.006055, allocations: 402.7 kB / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.006057, allocations: 0 / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.006058, allocations: 0 / 329.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.006062, allocations: 0 / 329.8 MB, free: 10.68 MB / 298.7 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.0008172/0.006879, allocations: 0.6162 MB / 330.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.006916, allocations: 12.02 kB / 330.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.006963, allocations: 66.73 kB / 330.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.007015, allocations: 36.7 kB / 330.5 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.007287, allocations: 241.1 kB / 330.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.007301, allocations: 16.88 kB / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.007327, allocations: 24.38 kB / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.007729, allocations: 331.2 kB / 331.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.108e-06/0.007738, allocations: 192 / 331.1 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.007758, allocations: 12.12 kB / 331.1 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.007764, allocations: 8 kB / 331.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.00817, allocations: 273.8 kB / 331.4 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.009203, allocations: 1.011 MB / 332.4 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.009625, allocations: 210.4 kB / 332.6 MB, free: 7.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.009773, allocations: 84.78 kB / 332.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.00979, allocations: 0 / 332.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.01003, allocations: 165.1 kB / 332.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.01004, allocations: 0 / 332.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0009256/0.01096, allocations: 334.1 kB / 333.2 MB, free: 7.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.011, allocations: 85.11 kB / 333.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.01124, allocations: 336.3 kB / 333.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.01125, allocations: 29.7 kB / 333.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.31e-05/0.01134, allocations: 203.9 kB / 333.9 MB, free: 6.387 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.01137, allocations: 47.72 kB / 333.9 MB, free: 6.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.009e-05/0.01143, allocations: 53.92 kB / 333.9 MB, free: 6.277 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.107e-05/0.01151, allocations: 338.8 kB / 334.3 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.0117, allocations: 125.9 kB / 334.4 MB, free: 5.809 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.01192, allocations: 236.7 kB / 334.6 MB, free: 5.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003782/0.01229, allocations: 337.2 kB / 335 MB, free: 5.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.0123, allocations: 0 / 335 MB, free: 5.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005406/0.01284, allocations: 433.4 kB / 335.4 MB, free: 4.688 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.01287, allocations: 33.64 kB / 335.4 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.01287, allocations: 4 kB / 335.4 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.01299, allocations: 41.08 kB / 335.5 MB, free: 4.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.01312, allocations: 63.89 kB / 335.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006505/0.01377, allocations: 1.283 MB / 336.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.01394, allocations: 63.86 kB / 336.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.01396, allocations: 11.94 kB / 336.9 MB, free: 3.066 MB / 298.7 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.0001059/0.01406, allocations: 153.7 kB / 337 MB, free: 2.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.01409, allocations: 24.23 kB / 337.1 MB, free: 2.883 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.01411, allocations: 26.67 kB / 337.1 MB, free: 2.859 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01412, allocations: 7.938 kB / 337.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.01412, allocations: 0 / 337.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.01412, allocations: 3.938 kB / 337.1 MB, free: 2.848 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.01441, allocations: 398.3 kB / 337.5 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01441, allocations: 0 / 337.5 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.671e-05/0.01449, allocations: 27.97 kB / 337.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-05/0.01455, allocations: 28.83 kB / 337.5 MB, free: 2.348 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.01456, allocations: 8 kB / 337.5 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005616/0.01512, allocations: 1.287 MB / 338.8 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01512, allocations: 0 / 338.8 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.0155, allocations: 274.5 kB / 339.1 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.01553, allocations: 31.78 kB / 339.1 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.01555, allocations: 7.984 kB / 339.1 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.81e-05/0.01565, allocations: 27.97 kB / 339.2 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.01569, allocations: 15.97 kB / 339.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.0157, allocations: 4 kB / 339.2 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001547/0.01586, allocations: 239 kB / 339.4 MB, free: 328 kB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01586, allocations: 0 / 339.4 MB, free: 328 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002133/0.01607, allocations: 63.95 kB / 339.5 MB, free: 264 kB / 298.7 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.0008111/0.01688, allocations: 0.8051 MB / 340.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005431/0.01742, allocations: 431.6 kB / 340.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01743, allocations: 0 / 340.7 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.01765, allocations: 219.5 kB / 340.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.01787, allocations: 51.75 kB / 341 MB, free: 14.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.02074, allocations: 3.272 MB / 344.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.257e-05/0.02082, allocations: 146.8 kB / 344.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.921e-05/0.0209, allocations: 30.97 kB / 344.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.605e-05/0.02099, allocations: 92.45 kB / 344.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of SimCode: time 4.11e-07/0.02099, allocations: 0 / 344.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.03895, allocations: 7.04 MB / 351.6 MB, free: 4.055 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.934/6.973, allocations: 12 kB / 351.6 MB, free: 4.043 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/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: 8.591677591204643]