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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 120.8 kB / 17.74 MB, free: 5.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 186.9 kB / 20.68 MB, free: 2.402 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 246.4 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 47.92 kB / 357.5 MB, free: 8.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1239, allocations: 49.44 MB / 407 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004311/0.1282, allocations: 2.88 MB / 409.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1297, allocations: 0.705 MB / 410.5 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.1298, allocations: 4 kB / 410.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.13, allocations: 51.5 kB / 410.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.1303, allocations: 95.17 kB / 410.7 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003168/0.1306, allocations: 107.8 kB / 410.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.1311, allocations: 398.5 kB / 411.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.1314, allocations: 136.1 kB / 411.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.1316, allocations: 151.4 kB / 411.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1318, allocations: 171.2 kB / 411.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.014e-05/0.1319, allocations: 36 kB / 411.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.327e-05/0.132, allocations: 40 kB / 411.7 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.241e-05/0.132, allocations: 83.67 kB / 411.8 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.1322, allocations: 167.1 kB / 412 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004788/0.1327, allocations: 394.4 kB / 412.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1327, allocations: 0 / 412.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1327, allocations: 0 / 412.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1328, allocations: 0 / 412.3 MB, free: 1.895 MB / 334.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.001469/0.1342, allocations: 0.6845 MB / 413 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.1343, allocations: 12.03 kB / 413 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.711e-05/0.1344, allocations: 66.72 kB / 413.1 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/0.1344, allocations: 32.75 kB / 413.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004449/0.1349, allocations: 299.7 kB / 413.4 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1349, allocations: 20.94 kB / 413.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.135, allocations: 24.38 kB / 413.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007648/0.1358, allocations: 323.8 kB / 413.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1358, allocations: 0 / 413.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.1358, allocations: 11.98 kB / 413.8 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1358, allocations: 4 kB / 413.8 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008065/0.1366, allocations: 278 kB / 414.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1385, allocations: 1.142 MB / 415.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008298/0.1394, allocations: 202.6 kB / 415.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.1397, allocations: 96.97 kB / 415.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.1397, allocations: 3.938 kB / 415.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004427/0.1402, allocations: 157 kB / 415.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.1402, allocations: 0 / 415.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001372/0.1416, allocations: 411.2 kB / 416.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/0.1416, allocations: 81.05 kB / 416.1 MB, free: 13.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.142, allocations: 328.5 kB / 416.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.1421, allocations: 33.69 kB / 416.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.1423, allocations: 212 kB / 416.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.913e-05/0.1423, allocations: 39.73 kB / 416.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.574e-05/0.1424, allocations: 49.89 kB / 416.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1426, allocations: 342.8 kB / 417.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003514/0.1429, allocations: 92.16 kB / 417.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000449/0.1434, allocations: 227.6 kB / 417.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007606/0.1442, allocations: 323.9 kB / 417.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1442, allocations: 4 kB / 417.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009905/0.1452, allocations: 403.8 kB / 418.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/0.1453, allocations: 43.5 kB / 418.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1453, allocations: 4 kB / 418.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.1455, allocations: 33 kB / 418.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.1457, allocations: 63.89 kB / 418.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.147, allocations: 1.402 MB / 419.7 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.1474, allocations: 59.69 kB / 419.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.1474, allocations: 16.38 kB / 419.8 MB, free: 9.867 MB / 350.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.0001877/0.1476, allocations: 153.8 kB / 419.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.1476, allocations: 23.86 kB / 419.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.1477, allocations: 30.61 kB / 420 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1477, allocations: 3.938 kB / 420 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1477, allocations: 3.938 kB / 420 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1477, allocations: 0 / 420 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00049/0.1482, allocations: 451.2 kB / 420.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1482, allocations: 4.031 kB / 420.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.1484, allocations: 31.95 kB / 420.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.694e-05/0.1485, allocations: 32.72 kB / 420.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1485, allocations: 4 kB / 420.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1497, allocations: 1.398 MB / 421.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1497, allocations: 160 / 421.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.1505, allocations: 282.4 kB / 422.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.462e-05/0.1506, allocations: 108.9 kB / 422.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.1506, allocations: 4 kB / 422.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1509, allocations: 23.97 kB / 422.3 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.226e-05/0.1509, allocations: 19.92 kB / 422.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.151, allocations: 7.984 kB / 422.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.1512, allocations: 239 kB / 422.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1512, allocations: 0 / 422.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1516, allocations: 63.95 kB / 422.6 MB, free: 6.758 MB / 350.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.001174/0.1528, allocations: 0.8128 MB / 423.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.1538, allocations: 414.6 kB / 423.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1538, allocations: 256 / 423.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005234/0.1543, allocations: 214.5 kB / 424.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.1547, allocations: 50.59 kB / 424.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005096/0.1598, allocations: 3.148 MB / 427.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.1602, allocations: 0.7558 MB / 428 MB, free: 1.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.1603, allocations: 30.97 kB / 428 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.1604, allocations: 87.41 kB / 428.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1604, allocations: 0 / 428.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2203/0.3808, allocations: 6.07 MB / 434.2 MB, free: 22.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.866/10.25, allocations: 18.42 kB / 434.2 MB, free: 22.43 MB / 350.1 MB " [Timeout remaining time 650] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.572426678147167]