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.001187/0.001187, allocations: 106.1 kB / 16.62 MB, free: 6.809 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.001287/0.001287, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.425/1.425, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 46.52 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1215, allocations: 49.45 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004174/0.1257, allocations: 2.92 MB / 352.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.127, allocations: 0.6934 MB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.1271, allocations: 7.938 kB / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.1273, allocations: 35.7 kB / 353.4 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.1275, allocations: 83.38 kB / 353.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.1278, allocations: 95.91 kB / 353.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.1282, allocations: 390.5 kB / 353.9 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002421/0.1285, allocations: 135.9 kB / 354 MB, free: 292 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.1287, allocations: 151.4 kB / 354.2 MB, free: 140 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.129, allocations: 175.3 kB / 354.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/0.129, allocations: 36 kB / 354.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.078e-05/0.1291, allocations: 36 kB / 354.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.896e-05/0.1292, allocations: 79.69 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1293, allocations: 167.1 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.1297, allocations: 394.8 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1297, allocations: 0 / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1297, allocations: 0 / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1297, allocations: 4 kB / 355.1 MB, free: 15.26 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.001244/0.131, allocations: 0.6847 MB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.131, allocations: 8.031 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.238e-05/0.1311, allocations: 58.73 kB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.681e-05/0.1312, allocations: 36.5 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.1315, allocations: 295.5 kB / 356.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.1315, allocations: 20.94 kB / 356.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.1316, allocations: 24.38 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.1323, allocations: 323.8 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1323, allocations: 0 / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.1323, allocations: 8 kB / 356.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.1323, allocations: 8 kB / 356.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007986/0.1331, allocations: 274 kB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.135, allocations: 1.142 MB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/0.1358, allocations: 210.6 kB / 358.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.1361, allocations: 92.77 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.1361, allocations: 0 / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004795/0.1366, allocations: 161 kB / 358.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1366, allocations: 0 / 358.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001254/0.1379, allocations: 415.1 kB / 358.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.138, allocations: 77.11 kB / 358.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/0.1384, allocations: 328.5 kB / 359.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1384, allocations: 30.08 kB / 359.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1386, allocations: 203.5 kB / 359.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.1386, allocations: 43.53 kB / 359.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.1387, allocations: 53.92 kB / 359.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1389, allocations: 342.8 kB / 359.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003363/0.1392, allocations: 96.16 kB / 359.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004136/0.1397, allocations: 210.9 kB / 360.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.1404, allocations: 330.1 kB / 360.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.1404, allocations: 4 kB / 360.5 MB, free: 9.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009507/0.1414, allocations: 415.5 kB / 360.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.1414, allocations: 33.7 kB / 360.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.1414, allocations: 4 kB / 360.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.1416, allocations: 32.78 kB / 360.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1419, allocations: 68.03 kB / 361 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.1431, allocations: 1.406 MB / 362.4 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.1435, allocations: 51.66 kB / 362.5 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.1435, allocations: 16 kB / 362.5 MB, free: 7.266 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.0001644/0.1437, allocations: 149.8 kB / 362.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.149e-05/0.1437, allocations: 27.62 kB / 362.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.1438, allocations: 30.61 kB / 362.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1438, allocations: 0 / 362.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1438, allocations: 3.938 kB / 362.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1438, allocations: 3.984 kB / 362.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.1443, allocations: 439.3 kB / 363.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1443, allocations: 7.969 kB / 363.1 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.1445, allocations: 31.95 kB / 363.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/0.1446, allocations: 28.78 kB / 363.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1446, allocations: 4 kB / 363.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/0.1457, allocations: 1.402 MB / 364.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1457, allocations: 0 / 364.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007172/0.1464, allocations: 270.4 kB / 364.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/0.1466, allocations: 108.7 kB / 365 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.1466, allocations: 4 kB / 365 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1468, allocations: 23.97 kB / 365 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.239e-05/0.1469, allocations: 27.91 kB / 365 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.1469, allocations: 4 kB / 365 MB, free: 4.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.1472, allocations: 227.1 kB / 365.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1472, allocations: 0 / 365.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000356/0.1476, allocations: 71.94 kB / 365.3 MB, free: 4.176 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.001087/0.1486, allocations: 0.8166 MB / 366.1 MB, free: 3.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009845/0.1496, allocations: 418.2 kB / 366.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1497, allocations: 0 / 366.5 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004774/0.1501, allocations: 210.6 kB / 366.7 MB, free: 2.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.1505, allocations: 57.5 kB / 366.8 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2297/0.3802, allocations: 3.231 MB / 370 MB, free: 24.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3806, allocations: 0.7527 MB / 370.8 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002253/0.3808, allocations: 33.61 kB / 370.8 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.381, allocations: 90.53 kB / 370.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of SimCode: time 1.182e-06/0.381, allocations: 0 / 370.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.4124, allocations: 5.802 MB / 376.7 MB, free: 23.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.4126, allocations: 227.1 kB / 376.9 MB, free: 23.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.602, allocations: 0 / 376.9 MB, free: 23.52 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