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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00173/0.00173, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002174/0.002174, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 68.33 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09536, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004582/0.09999, allocations: 2.899 MB / 360.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.1015, allocations: 0.74 MB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002573/0.1018, allocations: 12 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.102, allocations: 47.5 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.1023, allocations: 95.19 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.1026, allocations: 103.8 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004546/0.1031, allocations: 390.5 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.1034, allocations: 143.8 kB / 362 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.1036, allocations: 151.4 kB / 362.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.1038, allocations: 171.2 kB / 362.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.76e-05/0.1039, allocations: 40 kB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.719e-05/0.1039, allocations: 36 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.647e-05/0.104, allocations: 79.69 kB / 362.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.1042, allocations: 175.1 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003949/0.1046, allocations: 390.9 kB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1046, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1046, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1046, allocations: 0 / 363 MB, free: 8.527 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.001339/0.106, allocations: 0.677 MB / 363.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.106, allocations: 16.02 kB / 363.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.99e-05/0.1061, allocations: 58.73 kB / 363.8 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.594e-05/0.1062, allocations: 36.56 kB / 363.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.1065, allocations: 291.6 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.1066, allocations: 16.94 kB / 364.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.33e-05/0.1066, allocations: 28.38 kB / 364.1 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.1073, allocations: 327.7 kB / 364.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1073, allocations: 4 kB / 364.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.1074, allocations: 8 kB / 364.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.1074, allocations: 8 kB / 364.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008232/0.1082, allocations: 274.1 kB / 364.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.1101, allocations: 1.142 MB / 365.9 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008094/0.111, allocations: 206.5 kB / 366.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000331/0.1113, allocations: 92.77 kB / 366.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1113, allocations: 4 kB / 366.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004859/0.1118, allocations: 153 kB / 366.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.703e-06/0.1118, allocations: 0 / 366.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001321/0.1132, allocations: 411.3 kB / 366.7 MB, free: 4.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.1132, allocations: 85.09 kB / 366.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003601/0.1136, allocations: 328.8 kB / 367.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.1136, allocations: 29.7 kB / 367.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1138, allocations: 211.5 kB / 367.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.295e-05/0.1138, allocations: 35.55 kB / 367.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.1139, allocations: 57.86 kB / 367.5 MB, free: 3.777 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1141, allocations: 334.8 kB / 367.8 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003649/0.1144, allocations: 100.2 kB / 367.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/0.1149, allocations: 210.9 kB / 368.1 MB, free: 3.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007376/0.1156, allocations: 335.9 kB / 368.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1156, allocations: 0 / 368.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001029/0.1167, allocations: 399.7 kB / 368.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.1167, allocations: 37.8 kB / 368.9 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.1167, allocations: 4 kB / 368.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.1169, allocations: 32.83 kB / 368.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002879/0.1172, allocations: 59.89 kB / 369 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.1183, allocations: 1.406 MB / 370.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.1186, allocations: 51.66 kB / 370.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.1187, allocations: 20 kB / 370.4 MB, free: 0.5391 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.1188, allocations: 154.7 kB / 370.6 MB, free: 388 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1189, allocations: 31.69 kB / 370.6 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.044e-05/0.1189, allocations: 26.61 kB / 370.6 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.119, allocations: 0 / 370.6 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.119, allocations: 7.938 kB / 370.6 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.119, allocations: 0 / 370.6 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1511/0.2701, allocations: 444.4 kB / 371.1 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2701, allocations: 1.625 kB / 371.1 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.2704, allocations: 37.55 kB / 371.1 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001341/0.2705, allocations: 29.75 kB / 371.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.2706, allocations: 6.406 kB / 371.2 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007339/0.2713, allocations: 1.395 MB / 372.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2713, allocations: 1.547 kB / 372.5 MB, free: 18.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007883/0.2721, allocations: 275.2 kB / 372.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.2722, allocations: 103.8 kB / 372.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.2722, allocations: 2.172 kB / 372.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.2725, allocations: 29.03 kB / 372.9 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.2726, allocations: 16.69 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.2726, allocations: 7 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.2729, allocations: 234.2 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2729, allocations: 3.031 kB / 373.2 MB, free: 18.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004086/0.2733, allocations: 70.39 kB / 373.3 MB, free: 18.54 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.001001/0.2743, allocations: 0.8017 MB / 374.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.2753, allocations: 414.4 kB / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2754, allocations: 0 / 374.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004633/0.2758, allocations: 220.6 kB / 374.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.2762, allocations: 55.31 kB / 374.7 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.2809, allocations: 3.169 MB / 377.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.2811, allocations: 0.7541 MB / 378.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001527/0.2813, allocations: 31.94 kB / 378.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.2814, allocations: 85.95 kB / 378.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2814, allocations: 1.375 kB / 378.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.3078, allocations: 5.991 MB / 384.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.38/9.688, allocations: 3.969 kB / 384.8 MB, free: 14.01 MB / 302.1 MB (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches