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.0008737/0.0008737, allocations: 90.67 kB / 16.65 MB, free: 6.59 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.0009149/0.0009149, allocations: 180.2 kB / 17.56 MB, free: 6.203 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.476/1.476, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.000274, allocations: 8.969 kB / 301.5 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.4 MB / 351.9 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003357/0.1248, allocations: 2.553 MB / 354.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.1261, allocations: 0.6973 MB / 355.2 MB, free: 328 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001312/0.1262, allocations: 4 kB / 355.2 MB, free: 324 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1264, allocations: 39.69 kB / 355.2 MB, free: 284 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002025/0.1266, allocations: 87.38 kB / 355.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.1269, allocations: 95.84 kB / 355.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.1273, allocations: 362.5 kB / 355.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.1275, allocations: 111.6 kB / 355.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.1277, allocations: 131.4 kB / 356 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1279, allocations: 151.2 kB / 356.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.444e-05/0.1279, allocations: 20 kB / 356.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.212e-05/0.128, allocations: 16 kB / 356.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.906e-05/0.1281, allocations: 55.7 kB / 356.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1282, allocations: 180.9 kB / 356.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.1286, allocations: 362.8 kB / 356.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1286, allocations: 4 kB / 356.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1286, allocations: 0 / 356.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1286, allocations: 0 / 356.8 MB, free: 14.72 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.001326/0.13, allocations: 0.6498 MB / 357.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.13, allocations: 12.03 kB / 357.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.486e-05/0.1301, allocations: 62.72 kB / 357.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.62e-05/0.1302, allocations: 32.56 kB / 357.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003712/0.1306, allocations: 291.6 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.1306, allocations: 24.88 kB / 357.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.1306, allocations: 20.38 kB / 357.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007863/0.1314, allocations: 335.8 kB / 358.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1315, allocations: 4 kB / 358.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.1315, allocations: 11.94 kB / 358.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1315, allocations: 11.98 kB / 358.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008601/0.1324, allocations: 306 kB / 358.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.1343, allocations: 1.169 MB / 359.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008657/0.1352, allocations: 242.5 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000335/0.1355, allocations: 104.8 kB / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.1356, allocations: 0 / 360 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/0.1361, allocations: 173 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.1361, allocations: 0 / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001368/0.1375, allocations: 455.2 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.1376, allocations: 85.14 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003646/0.1379, allocations: 328.5 kB / 361 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.138, allocations: 25.7 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.1381, allocations: 211.5 kB / 361.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.1382, allocations: 35.55 kB / 361.3 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.46e-05/0.1382, allocations: 25.7 kB / 361.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1384, allocations: 334.8 kB / 361.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003757/0.1387, allocations: 120.1 kB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004374/0.1392, allocations: 227.9 kB / 362 MB, free: 9.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007879/0.14, allocations: 363.2 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.14, allocations: 4 kB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00103/0.141, allocations: 435.6 kB / 362.8 MB, free: 8.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.1411, allocations: 40.52 kB / 362.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.1411, allocations: 7.984 kB / 362.8 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.1413, allocations: 24.84 kB / 362.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/0.1416, allocations: 76.05 kB / 362.9 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.1427, allocations: 1.304 MB / 364.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.1431, allocations: 63.56 kB / 364.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.1431, allocations: 12 kB / 364.3 MB, free: 6.613 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.0001639/0.1433, allocations: 157.7 kB / 364.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.78e-05/0.1433, allocations: 23.72 kB / 364.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.844e-05/0.1434, allocations: 30.61 kB / 364.5 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1434, allocations: 4 kB / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1434, allocations: 0 / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1434, allocations: 0 / 364.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.1438, allocations: 455.1 kB / 365 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1439, allocations: 0 / 365 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.144, allocations: 35.97 kB / 365 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.911e-05/0.1441, allocations: 24.84 kB / 365 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.1442, allocations: 12.02 kB / 365 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009573/0.1451, allocations: 1.3 MB / 366.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1452, allocations: 3.984 kB / 366.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008138/0.146, allocations: 306.6 kB / 366.6 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.58e-05/0.1461, allocations: 104.8 kB / 366.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.1461, allocations: 8 kB / 366.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.1464, allocations: 27.97 kB / 366.8 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.1464, allocations: 19.97 kB / 366.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.1465, allocations: 7.938 kB / 366.8 MB, free: 3.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.1467, allocations: 235.1 kB / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1467, allocations: 0 / 367 MB, free: 3.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.1471, allocations: 67.84 kB / 367.1 MB, free: 3.578 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.001231/0.1483, allocations: 0.8362 MB / 367.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1493, allocations: 442.1 kB / 368.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1493, allocations: 3.938 kB / 368.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005379/0.1499, allocations: 235.2 kB / 368.6 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.1503, allocations: 48.25 kB / 368.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2086/0.3589, allocations: 3.329 MB / 372 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.3593, allocations: 0.7577 MB / 372.7 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.3595, allocations: 33.09 kB / 372.8 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3597, allocations: 86.62 kB / 372.9 MB, free: 22.91 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3597, allocations: 0 / 372.9 MB, free: 22.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.3791, allocations: 5.509 MB / 378.4 MB, free: 22.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.3793, allocations: 233 kB / 378.6 MB, free: 22.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/2.44, allocations: 5.031 kB / 378.6 MB, free: 22.33 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