Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008417/0.0008417, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008515/0.0008515, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8872/0.8872, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.709/1.709, allocations: 377.8 MB / 0.6221 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 0.981 GB, free: 2.57 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.407e-05/1.616e-05, allocations: 6.281 kB / 0.981 GB, free: 2.562 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003101/0.003117, allocations: 1.78 MB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.004705, allocations: 1.196 MB / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.913e-05/0.004774, allocations: 0 / 0.9839 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.005047, allocations: 59.67 kB / 0.9839 GB, free: 15.51 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.005319, allocations: 127.4 kB / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.005711, allocations: 197.1 kB / 0.9842 GB, free: 15.2 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001881/0.005899, allocations: 167.5 kB / 0.9844 GB, free: 15.03 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.926e-05/0.005998, allocations: 17.64 kB / 0.9844 GB, free: 15.01 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.006105, allocations: 83.73 kB / 0.9845 GB, free: 14.93 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.006206, allocations: 67.8 kB / 0.9846 GB, free: 14.86 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.731e-05/0.006223, allocations: 8 kB / 0.9846 GB, free: 14.86 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.006358, allocations: 79.86 kB / 0.9846 GB, free: 14.78 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.495e-05/0.006423, allocations: 39.84 kB / 0.9847 GB, free: 14.74 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 4.469e-05/0.006468, allocations: 31.92 kB / 0.9847 GB, free: 14.71 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.006707, allocations: 219.3 kB / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.006709, allocations: 0 / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.72e-07/0.00671, allocations: 0 / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.006714, allocations: 0 / 0.9849 GB, free: 14.49 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005222/0.007236, allocations: 430.8 kB / 0.9853 GB, free: 14.04 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.007272, allocations: 16.02 kB / 0.9853 GB, free: 14.02 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.627e-05/0.007298, allocations: 30.75 kB / 0.9854 GB, free: 13.98 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.007335, allocations: 16.84 kB / 0.9854 GB, free: 13.96 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.007574, allocations: 194.1 kB / 0.9856 GB, free: 13.75 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.007587, allocations: 12.38 kB / 0.9856 GB, free: 13.74 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.007597, allocations: 4.375 kB / 0.9856 GB, free: 13.73 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.007755, allocations: 125.3 kB / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.007761, allocations: 0 / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.007771, allocations: 0 / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.00778, allocations: 0 / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.258e-05/0.007852, allocations: 39.91 kB / 0.9857 GB, free: 13.55 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003708/0.008223, allocations: 319.8 kB / 0.9861 GB, free: 13.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.008366, allocations: 86.66 kB / 0.9861 GB, free: 13.11 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.453e-05/0.008411, allocations: 32.84 kB / 0.9862 GB, free: 13.07 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.008423, allocations: 0 / 0.9862 GB, free: 13.07 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001345/0.008558, allocations: 95.38 kB / 0.9863 GB, free: 12.96 MB / 0.948 GB Notification: Performance of pre-optimization done (n=8): time 7.92e-07/0.008559, allocations: 0 / 0.9863 GB, free: 12.96 MB / 0.948 GB Notification: Performance of matching and sorting (n=8): time 0.0002625/0.008821, allocations: 141.8 kB / 0.9864 GB, free: 12.82 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.008865, allocations: 81.09 kB / 0.9865 GB, free: 12.72 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.009071, allocations: 275.2 kB / 0.9867 GB, free: 12.45 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.474e-05/0.009086, allocations: 25.7 kB / 0.9868 GB, free: 12.41 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.009151, allocations: 116.1 kB / 0.9869 GB, free: 12.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.009176, allocations: 27.83 kB / 0.9869 GB, free: 12.27 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.009214, allocations: 33.7 kB / 0.9869 GB, free: 12.23 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.009314, allocations: 330.8 kB / 0.9872 GB, free: 11.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.627e-05/0.00936, allocations: 31.92 kB / 0.9873 GB, free: 11.87 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.89e-05/0.009439, allocations: 118.8 kB / 0.9874 GB, free: 11.73 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.171e-05/0.009531, allocations: 69.77 kB / 0.9875 GB, free: 11.65 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.009533, allocations: 0 / 0.9875 GB, free: 11.65 MB / 0.948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000139/0.009672, allocations: 117.5 kB / 0.9876 GB, free: 11.53 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.009688, allocations: 8 kB / 0.9876 GB, free: 11.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.009694, allocations: 4.062 kB / 0.9876 GB, free: 11.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.009707, allocations: 0 / 0.9876 GB, free: 11.52 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.388e-05/0.009781, allocations: 16 kB / 0.9876 GB, free: 11.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.009788, allocations: 3.984 kB / 0.9876 GB, free: 11.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.183e-05/0.009829, allocations: 11.89 kB / 0.9876 GB, free: 11.49 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.009837, allocations: 7.938 kB / 0.9876 GB, free: 11.48 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.862e-05/0.009936, allocations: 142.9 kB / 0.9878 GB, free: 11.33 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.88e-05/0.009955, allocations: 15.91 kB / 0.9878 GB, free: 11.32 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/0.01015, allocations: 139.2 kB / 0.9879 GB, free: 11.18 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.01015, allocations: 8 kB / 0.9879 GB, free: 11.17 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.01016, allocations: 0 / 0.9879 GB, free: 11.17 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.01016, allocations: 3.938 kB / 0.9879 GB, free: 11.16 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.01031, allocations: 188.6 kB / 0.9881 GB, free: 10.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.01031, allocations: 0 / 0.9881 GB, free: 10.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.476e-05/0.01033, allocations: 8 kB / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.01033, allocations: 0 / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.01034, allocations: 0 / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.01034, allocations: 4 kB / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01035, allocations: 0 / 0.9881 GB, free: 10.93 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.0105, allocations: 160.8 kB / 0.9883 GB, free: 10.75 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.996e-05/0.01052, allocations: 15.89 kB / 0.9883 GB, free: 10.73 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.01054, allocations: 8 kB / 0.9883 GB, free: 10.73 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.505e-05/0.01056, allocations: 3.984 kB / 0.9883 GB, free: 10.72 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.01061, allocations: 7.984 kB / 0.9883 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.01062, allocations: 4 kB / 0.9883 GB, free: 10.71 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001398/0.01076, allocations: 208.6 kB / 0.9885 GB, free: 10.51 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.01076, allocations: 0 / 0.9885 GB, free: 10.51 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001837/0.01094, allocations: 35.92 kB / 0.9885 GB, free: 10.47 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001031/0.01197, allocations: 1.044 MB / 0.9895 GB, free: 9.582 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000146/0.01212, allocations: 67.91 kB / 0.9896 GB, free: 9.516 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.01212, allocations: 0 / 0.9896 GB, free: 9.516 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.004e-05/0.01217, allocations: 35.97 kB / 0.9896 GB, free: 9.48 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000179/0.01235, allocations: 42.67 kB / 0.9897 GB, free: 9.441 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.01388, allocations: 2.004 MB / 0.9916 GB, free: 7.344 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.144e-05/0.01397, allocations: 122.7 kB / 0.9918 GB, free: 7.207 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.826e-05/0.01402, allocations: 25.78 kB / 0.9918 GB, free: 7.184 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-05/0.01409, allocations: 56.42 kB / 0.9918 GB, free: 7.129 MB / 0.948 GB Notification: Performance of SimCode: time 5.31e-07/0.01409, allocations: 0 / 0.9918 GB, free: 7.129 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.03206, allocations: 5.625 MB / 0.9973 GB, free: 1.59 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.096/7.128, allocations: 8.109 kB / 0.9973 GB, free: 1.586 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.08698445186019]