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.001122/0.001122, allocations: 105.5 kB / 16.92 MB, free: 6.145 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.001083/0.001083, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 51.77 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1042, allocations: 49.45 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004854/0.1091, allocations: 2.874 MB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1106, allocations: 0.7089 MB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.1109, allocations: 4 kB / 353.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002023/0.1111, allocations: 47.5 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.1114, allocations: 95.19 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.1118, allocations: 119.7 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005682/0.1124, allocations: 390.5 kB / 354.4 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.1127, allocations: 132 kB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002694/0.1129, allocations: 151.3 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.1132, allocations: 171.2 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.523e-05/0.1133, allocations: 40 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.44e-05/0.1134, allocations: 36 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.646e-05/0.1135, allocations: 79.69 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1136, allocations: 167.2 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.1141, allocations: 398.9 kB / 355.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1141, allocations: 0 / 355.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.1141, allocations: 0 / 355.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.1141, allocations: 0 / 355.5 MB, free: 14.9 MB / 302.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.001408/0.1155, allocations: 0.6808 MB / 356.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1156, allocations: 8.031 kB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.06e-05/0.1156, allocations: 66.66 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.1158, allocations: 32.56 kB / 356.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.1162, allocations: 287.6 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.1163, allocations: 16.94 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.304e-05/0.1163, allocations: 28.38 kB / 356.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.1171, allocations: 319.8 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1171, allocations: 0 / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.1171, allocations: 15.98 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1171, allocations: 4 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008341/0.118, allocations: 278 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.1202, allocations: 1.146 MB / 358.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009219/0.1211, allocations: 206.5 kB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.1215, allocations: 92.8 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.1215, allocations: 3.984 kB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005125/0.122, allocations: 161 kB / 358.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.122, allocations: 0 / 358.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001404/0.1234, allocations: 411 kB / 359.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.1235, allocations: 85.11 kB / 359.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003856/0.1239, allocations: 320.5 kB / 359.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.124, allocations: 33.73 kB / 359.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.1241, allocations: 211.5 kB / 359.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.1242, allocations: 31.55 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.6e-05/0.1243, allocations: 53.94 kB / 360 MB, free: 10.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1244, allocations: 334.8 kB / 360.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.1248, allocations: 104.1 kB / 360.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.1252, allocations: 215.4 kB / 360.6 MB, free: 9.469 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000729/0.1259, allocations: 334.6 kB / 360.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1259, allocations: 3.938 kB / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009535/0.1269, allocations: 403.5 kB / 361.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.1269, allocations: 29.7 kB / 361.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.127, allocations: 7.984 kB / 361.4 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.1272, allocations: 37.09 kB / 361.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1275, allocations: 59.89 kB / 361.5 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.1285, allocations: 1.418 MB / 362.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003544/0.1289, allocations: 55.75 kB / 362.9 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.1289, allocations: 11.98 kB / 363 MB, free: 6.906 MB / 302.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.0001529/0.1291, allocations: 149.7 kB / 363.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/0.1291, allocations: 27.62 kB / 363.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.907e-05/0.1292, allocations: 26.61 kB / 363.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.1292, allocations: 4 kB / 363.2 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1292, allocations: 3.938 kB / 363.2 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1292, allocations: 4 kB / 363.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004723/0.1297, allocations: 451.2 kB / 363.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1297, allocations: 0 / 363.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.1299, allocations: 31.91 kB / 363.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001087/0.13, allocations: 36.8 kB / 363.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1301, allocations: 0 / 363.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009704/0.131, allocations: 1.395 MB / 365.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.131, allocations: 0 / 365.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007447/0.1318, allocations: 270.7 kB / 365.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.1319, allocations: 108.7 kB / 365.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.1319, allocations: 7.984 kB / 365.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.1322, allocations: 27.97 kB / 365.5 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.1323, allocations: 19.92 kB / 365.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.1323, allocations: 8 kB / 365.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.1325, allocations: 231.1 kB / 365.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1325, allocations: 0 / 365.7 MB, free: 3.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.1329, allocations: 67.84 kB / 365.8 MB, free: 3.812 MB / 302.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.001102/0.134, allocations: 0.8244 MB / 366.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.135, allocations: 410 kB / 367 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.135, allocations: 0 / 367 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004863/0.1355, allocations: 223.3 kB / 367.2 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1359, allocations: 51.23 kB / 367.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1605/0.2964, allocations: 3.153 MB / 370.4 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.2966, allocations: 0.7534 MB / 371.2 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000185/0.2968, allocations: 34.59 kB / 371.2 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001412/0.297, allocations: 85.94 kB / 371.3 MB, free: 24.04 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.297, allocations: 0.5312 kB / 371.3 MB, free: 24.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.3222, allocations: 5.953 MB / 377.3 MB, free: 23.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.036/9.358, allocations: 5.328 kB / 377.3 MB, free: 23.53 MB / 302.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