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.001676/0.001676, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001917/0.001917, allocations: 187.4 kB / 23.72 MB, free: 4.684 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.375/1.375, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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.002382/0.002382, allocations: 47.91 kB / 370.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.235, allocations: 52.18 MB / 422.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004287/0.2393, allocations: 2.921 MB / 425.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.2406, allocations: 0.7089 MB / 426.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.2407, allocations: 4 kB / 426.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.2409, allocations: 51.44 kB / 426.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.2411, allocations: 99.19 kB / 426.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2414, allocations: 111.9 kB / 426.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.2419, allocations: 390.5 kB / 426.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002069/0.2421, allocations: 96.45 kB / 427 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.2423, allocations: 163.3 kB / 427.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.2425, allocations: 163.4 kB / 427.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.819e-05/0.2425, allocations: 36 kB / 427.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.658e-05/0.2426, allocations: 36 kB / 427.4 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.2427, allocations: 83.67 kB / 427.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.2428, allocations: 167.1 kB / 427.7 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.2433, allocations: 399.1 kB / 428.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2433, allocations: 4 kB / 428.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2433, allocations: 0 / 428.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.2433, allocations: 0 / 428.1 MB, free: 9.305 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.001357/0.2447, allocations: 0.613 MB / 428.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2447, allocations: 11.97 kB / 428.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.413e-05/0.2448, allocations: 58.73 kB / 428.7 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.954e-05/0.2448, allocations: 36.75 kB / 428.8 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.2452, allocations: 245.8 kB / 429 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.2453, allocations: 20.88 kB / 429 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.651e-05/0.2453, allocations: 32.36 kB / 429.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006738/0.246, allocations: 322.8 kB / 429.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.246, allocations: 0 / 429.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.246, allocations: 15.98 kB / 429.4 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.246, allocations: 4 kB / 429.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007698/0.2468, allocations: 273.8 kB / 429.7 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.2486, allocations: 1.088 MB / 430.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007777/0.2494, allocations: 214.5 kB / 431 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.2497, allocations: 80.8 kB / 431 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.2497, allocations: 0 / 431 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.2501, allocations: 161.1 kB / 431.2 MB, free: 5.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.2501, allocations: 4 kB / 431.2 MB, free: 5.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.00119/0.2513, allocations: 326.1 kB / 431.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.2514, allocations: 85.14 kB / 431.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.2517, allocations: 328.5 kB / 431.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.2517, allocations: 29.7 kB / 432 MB, free: 5.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.2519, allocations: 215.8 kB / 432.2 MB, free: 4.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.2519, allocations: 35.73 kB / 432.2 MB, free: 4.914 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.252, allocations: 53.89 kB / 432.3 MB, free: 4.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2522, allocations: 338.8 kB / 432.6 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003551/0.2525, allocations: 100.5 kB / 432.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.2529, allocations: 207 kB / 432.9 MB, free: 4.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007175/0.2536, allocations: 335.9 kB / 433.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2537, allocations: 4 kB / 433.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009423/0.2546, allocations: 411.8 kB / 433.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.2546, allocations: 33.73 kB / 433.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2546, allocations: 8 kB / 433.7 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001672/0.2548, allocations: 32.83 kB / 433.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.2551, allocations: 59.89 kB / 433.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001088/0.2562, allocations: 1.295 MB / 435 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.2565, allocations: 59.86 kB / 435.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.2565, allocations: 16 kB / 435.1 MB, free: 1.723 MB / 334.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.0001524/0.2567, allocations: 149.7 kB / 435.3 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.809e-05/0.2567, allocations: 27.84 kB / 435.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.053e-05/0.2568, allocations: 34.55 kB / 435.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2568, allocations: 0 / 435.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2568, allocations: 7.938 kB / 435.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2568, allocations: 0 / 435.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.2572, allocations: 418.3 kB / 435.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.2572, allocations: 7.984 kB / 435.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.2574, allocations: 23.97 kB / 435.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.885e-05/0.2575, allocations: 32.81 kB / 435.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2575, allocations: 4 kB / 435.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.2585, allocations: 1.292 MB / 437.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2585, allocations: 3.984 kB / 437.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000721/0.2592, allocations: 274.5 kB / 437.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-05/0.2593, allocations: 27.8 kB / 437.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.2593, allocations: 4 kB / 437.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.2596, allocations: 31.97 kB / 437.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.07e-05/0.2596, allocations: 19.91 kB / 437.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.2597, allocations: 4 kB / 437.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002447/0.2599, allocations: 231.1 kB / 437.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2599, allocations: 0 / 437.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.2602, allocations: 67.89 kB / 437.8 MB, free: 14.89 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.001025/0.2613, allocations: 0.8129 MB / 438.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009699/0.2622, allocations: 406 kB / 439 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2622, allocations: 0 / 439 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.2627, allocations: 215.3 kB / 439.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.2631, allocations: 45.33 kB / 439.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004897/0.268, allocations: 3.156 MB / 442.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.2683, allocations: 0.7518 MB / 443.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.2685, allocations: 38.91 kB / 443.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.2686, allocations: 83.41 kB / 443.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2686, allocations: 0 / 443.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/0.3115, allocations: 6.303 MB / 449.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.97, allocations: 4 kB / 449.6 MB, free: 2.961 MB / 350.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.223423718009144]