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.001737/0.001737, allocations: 120.7 kB / 17.79 MB, free: 5.137 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.002051/0.002051, allocations: 186.9 kB / 20.73 MB, free: 2.207 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.366/1.366, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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.001444/0.001444, allocations: 55.92 kB / 365.7 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 52.14 MB / 417.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004695/0.1085, allocations: 2.885 MB / 420.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1103, allocations: 0.705 MB / 421.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002785/0.1106, allocations: 4 kB / 421.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.1109, allocations: 55.5 kB / 421.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003235/0.1112, allocations: 103.2 kB / 421.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.1117, allocations: 107.8 kB / 421.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.1123, allocations: 398.4 kB / 422.1 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/0.1126, allocations: 95.89 kB / 422.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.1128, allocations: 147.5 kB / 422.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.1131, allocations: 175.2 kB / 422.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.1131, allocations: 40 kB / 422.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.73e-05/0.1132, allocations: 36 kB / 422.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.797e-05/0.1133, allocations: 79.67 kB / 422.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.1135, allocations: 175.1 kB / 422.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.1141, allocations: 390.4 kB / 423.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1141, allocations: 0 / 423.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1141, allocations: 0 / 423.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1141, allocations: 0 / 423.2 MB, free: 7.164 MB / 350.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.001443/0.1155, allocations: 0.6884 MB / 423.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.1156, allocations: 8.031 kB / 423.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.17e-05/0.1157, allocations: 62.72 kB / 423.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.186e-05/0.1157, allocations: 40.75 kB / 424 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.1163, allocations: 303.7 kB / 424.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.1164, allocations: 16.94 kB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.1164, allocations: 28.38 kB / 424.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007332/0.1171, allocations: 327.7 kB / 424.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.1172, allocations: 0 / 424.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.1172, allocations: 8 kB / 424.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1172, allocations: 8 kB / 424.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.118, allocations: 281.9 kB / 424.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.1198, allocations: 1.134 MB / 426.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007514/0.1206, allocations: 194.6 kB / 426.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.1209, allocations: 88.78 kB / 426.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.1209, allocations: 4 kB / 426.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000436/0.1213, allocations: 153.1 kB / 426.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.1213, allocations: 4 kB / 426.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001238/0.1226, allocations: 411.5 kB / 426.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.1226, allocations: 77.2 kB / 427 MB, free: 3.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/0.123, allocations: 332.5 kB / 427.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.1231, allocations: 33.69 kB / 427.3 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.1232, allocations: 215.9 kB / 427.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.1233, allocations: 35.77 kB / 427.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.766e-05/0.1234, allocations: 53.89 kB / 427.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.1235, allocations: 338.8 kB / 428 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.1239, allocations: 100.2 kB / 428.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.1243, allocations: 219.6 kB / 428.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007212/0.125, allocations: 324 kB / 428.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.125, allocations: 0 / 428.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009835/0.126, allocations: 411.3 kB / 429 MB, free: 0.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.585e-05/0.126, allocations: 41.69 kB / 429 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.126, allocations: 4 kB / 429 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/0.1262, allocations: 25 kB / 429.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.1265, allocations: 71.83 kB / 429.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001224/0.1277, allocations: 1.414 MB / 430.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003414/0.128, allocations: 59.69 kB / 430.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.1281, allocations: 12 kB / 430.6 MB, free: 15.14 MB / 366.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.0001778/0.1282, allocations: 150.5 kB / 430.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.1283, allocations: 27.86 kB / 430.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.08e-05/0.1283, allocations: 30.61 kB / 430.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1283, allocations: 0 / 430.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1283, allocations: 3.938 kB / 430.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.736e-06/0.1283, allocations: 4 kB / 430.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005174/0.1289, allocations: 447.2 kB / 431.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1289, allocations: 0 / 431.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.129, allocations: 39.92 kB / 431.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.1292, allocations: 28.78 kB / 431.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.1292, allocations: 4 kB / 431.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.1303, allocations: 1.398 MB / 432.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1303, allocations: 0 / 432.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007124/0.131, allocations: 282.6 kB / 433 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.316e-05/0.1311, allocations: 101 kB / 433.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.1311, allocations: 8 kB / 433.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1313, allocations: 20.06 kB / 433.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.1314, allocations: 23.86 kB / 433.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.1314, allocations: 7.984 kB / 433.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002528/0.1317, allocations: 231.1 kB / 433.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1317, allocations: 4 kB / 433.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.132, allocations: 67.89 kB / 433.5 MB, free: 12.04 MB / 366.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.001098/0.1331, allocations: 0.8206 MB / 434.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.1342, allocations: 398.5 kB / 434.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.1342, allocations: 4 kB / 434.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.1346, allocations: 210.7 kB / 434.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.1349, allocations: 49.28 kB / 434.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.1398, allocations: 3.151 MB / 438.1 MB, free: 7.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.1404, allocations: 0.7479 MB / 438.8 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.1405, allocations: 38.97 kB / 438.9 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.1406, allocations: 87.41 kB / 438.9 MB, free: 6.25 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1406, allocations: 0 / 438.9 MB, free: 6.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04365/0.1843, allocations: 6.115 MB / 445.1 MB, free: 296 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/10.54, allocations: 7.547 kB / 445.1 MB, free: 292 kB / 366.1 MB " [Timeout remaining time 649] (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: 13.368253413122147]