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.001401/0.001401, allocations: 105.4 kB / 16.92 MB, free: 5.754 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.001408/0.001408, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.389/1.389, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 47.48 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1027, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004514/0.1072, allocations: 2.87 MB / 353 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1085, allocations: 0.7051 MB / 353.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.1086, allocations: 7.938 kB / 353.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1088, allocations: 51.5 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.109, allocations: 91.19 kB / 353.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002953/0.1093, allocations: 111.8 kB / 354 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004012/0.1097, allocations: 386.5 kB / 354.4 MB, free: 88 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002815/0.11, allocations: 135.9 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001978/0.1102, allocations: 159.3 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.1104, allocations: 171.2 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.681e-05/0.1105, allocations: 40 kB / 354.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.714e-05/0.1106, allocations: 36 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.776e-05/0.1107, allocations: 75.75 kB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1109, allocations: 167.2 kB / 355.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003722/0.1112, allocations: 390.9 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1113, allocations: 4 kB / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1113, allocations: 0 / 355.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1113, allocations: 3.938 kB / 355.5 MB, free: 14.92 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.00134/0.1126, allocations: 0.6847 MB / 356.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1127, allocations: 8.031 kB / 356.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.578e-05/0.1127, allocations: 66.72 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.1128, allocations: 36.5 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.1132, allocations: 283.6 kB / 356.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.1132, allocations: 20.94 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.1132, allocations: 24.38 kB / 356.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006931/0.1139, allocations: 323.7 kB / 357 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.114, allocations: 0 / 357 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.114, allocations: 12 kB / 357 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.114, allocations: 4 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007842/0.1148, allocations: 278 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1166, allocations: 1.146 MB / 358.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00082/0.1174, allocations: 214.5 kB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.1177, allocations: 84.8 kB / 358.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1178, allocations: 0 / 358.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005037/0.1183, allocations: 165 kB / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.1183, allocations: 0 / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001304/0.1196, allocations: 411.1 kB / 359.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.1197, allocations: 81.11 kB / 359.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.12, allocations: 328.4 kB / 359.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1201, allocations: 25.7 kB / 359.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.1202, allocations: 211.5 kB / 359.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.1202, allocations: 35.55 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1204, allocations: 50.31 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1205, allocations: 338.8 kB / 360.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.1209, allocations: 100.1 kB / 360.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004022/0.1213, allocations: 211 kB / 360.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007413/0.122, allocations: 341.9 kB / 360.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.122, allocations: 0 / 360.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009763/0.123, allocations: 411.6 kB / 361.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.1231, allocations: 29.7 kB / 361.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1231, allocations: 4 kB / 361.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.1233, allocations: 36.83 kB / 361.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1236, allocations: 59.89 kB / 361.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.1246, allocations: 1.41 MB / 362.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.125, allocations: 51.66 kB / 362.9 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.1251, allocations: 12 kB / 362.9 MB, free: 6.93 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.0001666/0.1252, allocations: 157.1 kB / 363.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.784e-05/0.1253, allocations: 27.62 kB / 363.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.02e-05/0.1253, allocations: 30.61 kB / 363.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1254, allocations: 7.938 kB / 363.2 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1254, allocations: 3.938 kB / 363.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1254, allocations: 0 / 363.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.1258, allocations: 447.2 kB / 363.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1258, allocations: 0 / 363.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.126, allocations: 32 kB / 363.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.1261, allocations: 28.78 kB / 363.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1261, allocations: 7.969 kB / 363.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009567/0.1271, allocations: 1.398 MB / 365.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1271, allocations: 4.156 kB / 365.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007566/0.1279, allocations: 274.2 kB / 365.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.501e-05/0.128, allocations: 108.7 kB / 365.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.077e-05/0.128, allocations: 0 / 365.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.1283, allocations: 27.95 kB / 365.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.1284, allocations: 23.92 kB / 365.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1284, allocations: 0 / 365.5 MB, free: 4.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.1286, allocations: 235.1 kB / 365.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1286, allocations: 0 / 365.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000357/0.129, allocations: 71.84 kB / 365.8 MB, free: 3.824 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.001105/0.1301, allocations: 0.8089 MB / 366.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.1312, allocations: 418.4 kB / 367 MB, free: 2.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.1312, allocations: 8.312 kB / 367 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.1317, allocations: 218.5 kB / 367.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.1321, allocations: 47.05 kB / 367.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1482/0.2803, allocations: 3.151 MB / 370.4 MB, free: 24.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2806, allocations: 0.7539 MB / 371.2 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.2808, allocations: 34.94 kB / 371.2 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2809, allocations: 86.44 kB / 371.3 MB, free: 24.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2809, allocations: 1.938 kB / 371.3 MB, free: 24.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.3107, allocations: 5.955 MB / 377.3 MB, free: 23.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.478/9.788, allocations: 3.766 kB / 377.3 MB, free: 23.59 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches