Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 113.8 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.27/2.27, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 47.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4038, allocations: 49.43 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.007196/0.4111, allocations: 2.888 MB / 403.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.4136, allocations: 0.6973 MB / 403.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004674/0.4141, allocations: 4 kB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.4144, allocations: 51.44 kB / 403.9 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005652/0.4151, allocations: 99.17 kB / 404 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.4156, allocations: 111.9 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008571/0.4165, allocations: 390.5 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.417, allocations: 131.9 kB / 404.6 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004421/0.4174, allocations: 151.4 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004245/0.4179, allocations: 171.3 kB / 404.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.418, allocations: 40 kB / 405 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.4181, allocations: 36 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.4183, allocations: 79.69 kB / 405.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.4186, allocations: 163.2 kB / 405.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007426/0.4193, allocations: 392.3 kB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4194, allocations: 4 kB / 405.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4194, allocations: 4 kB / 405.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.526e-05/0.4194, allocations: 0 / 405.6 MB, free: 3.398 MB / 318.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.002488/0.4219, allocations: 0.6877 MB / 406.3 MB, free: 2.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.746e-05/0.422, allocations: 15.89 kB / 406.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.4221, allocations: 62.72 kB / 406.4 MB, free: 2.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.4223, allocations: 32.56 kB / 406.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006779/0.423, allocations: 283.7 kB / 406.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/0.423, allocations: 24.92 kB / 406.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.434e-05/0.4231, allocations: 28.38 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.4241, allocations: 323.7 kB / 407.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.4242, allocations: 0 / 407.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.4242, allocations: 12 kB / 407.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.4243, allocations: 8 kB / 407.1 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.4254, allocations: 274.1 kB / 407.4 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002095/0.4275, allocations: 1.138 MB / 408.5 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000794/0.4283, allocations: 214.5 kB / 408.7 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002923/0.4287, allocations: 88.78 kB / 408.8 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.4287, allocations: 3.984 kB / 408.8 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004836/0.4292, allocations: 165.1 kB / 409 MB, free: 15.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.974e-06/0.4292, allocations: 0 / 409 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001366/0.4306, allocations: 403.1 kB / 409.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.4306, allocations: 81.14 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.4311, allocations: 328.4 kB / 409.8 MB, free: 15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.4311, allocations: 41.62 kB / 409.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.4313, allocations: 199.5 kB / 410 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.4314, allocations: 35.55 kB / 410 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.4315, allocations: 53.84 kB / 410.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.4317, allocations: 338.8 kB / 410.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003507/0.432, allocations: 104.2 kB / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004292/0.4325, allocations: 207.7 kB / 410.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.4333, allocations: 339.9 kB / 411.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4333, allocations: 0 / 411.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001012/0.4343, allocations: 395.8 kB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.619e-05/0.4344, allocations: 45.75 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.4344, allocations: 4 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002381/0.4347, allocations: 28.84 kB / 411.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.435, allocations: 59.89 kB / 411.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.4363, allocations: 1.406 MB / 413 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003637/0.4367, allocations: 59.72 kB / 413 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.4367, allocations: 16.36 kB / 413.1 MB, free: 11.39 MB / 334.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.0001609/0.4369, allocations: 145.8 kB / 413.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.697e-05/0.437, allocations: 23.72 kB / 413.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.437, allocations: 26.61 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.437, allocations: 3.938 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.4371, allocations: 11.88 kB / 413.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4371, allocations: 7.984 kB / 413.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.4376, allocations: 455.1 kB / 413.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.4376, allocations: 4 kB / 413.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.4378, allocations: 31.97 kB / 413.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001125/0.4379, allocations: 36.8 kB / 413.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.4379, allocations: 0 / 413.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.4389, allocations: 1.383 MB / 415.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.439, allocations: 0 / 415.2 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.4397, allocations: 282.2 kB / 415.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.913e-05/0.4398, allocations: 100.8 kB / 415.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.202e-05/0.4399, allocations: 8 kB / 415.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.4401, allocations: 23.97 kB / 415.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.857e-05/0.4402, allocations: 19.92 kB / 415.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.4402, allocations: 11.98 kB / 415.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.4405, allocations: 227.1 kB / 415.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4405, allocations: 3.938 kB / 415.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.4408, allocations: 67.84 kB / 415.9 MB, free: 8.289 MB / 334.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.001197/0.442, allocations: 0.8089 MB / 416.7 MB, free: 7.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.4431, allocations: 422 kB / 417.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4431, allocations: 0 / 417.1 MB, free: 7.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005744/0.4437, allocations: 215.4 kB / 417.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.4441, allocations: 46.56 kB / 417.4 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005585/0.4497, allocations: 3.137 MB / 420.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000466/0.4503, allocations: 0.7558 MB / 421.3 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.4505, allocations: 34.95 kB / 421.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.4506, allocations: 87.41 kB / 421.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of SimCode: time 2.365e-06/0.4506, allocations: 7.938 kB / 421.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03318/0.4838, allocations: 6.194 MB / 427.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.03, allocations: 11.98 kB / 427.6 MB, free: 12.45 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches