Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001725/0.001725, allocations: 117.8 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 208.9 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 230.2 MB / 254.5 MB, free: 15.29 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.88 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1042, allocations: 53.32 MB / 426.7 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003094/0.1072, allocations: 1.607 MB / 428.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1084, allocations: 0.561 MB / 428.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001044/0.1085, allocations: 4 kB / 428.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.897e-05/0.1085, allocations: 7.875 kB / 428.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.1087, allocations: 15.86 kB / 428.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.1091, allocations: 67.8 kB / 428.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.1092, allocations: 51.8 kB / 429 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.744e-05/0.1093, allocations: 11.98 kB / 429 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.1095, allocations: 31.84 kB / 429 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.607e-05/0.1095, allocations: 19.86 kB / 429 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.1096, allocations: 4 kB / 429.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.334e-05/0.1096, allocations: 12 kB / 429.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.885e-05/0.1096, allocations: 15.92 kB / 429.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.264e-05/0.1097, allocations: 31.78 kB / 429.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.1099, allocations: 71.67 kB / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1099, allocations: 0 / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1099, allocations: 0 / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1099, allocations: 0 / 429.2 MB, free: 2.5 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000565/0.1104, allocations: 387 kB / 429.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1105, allocations: 12.03 kB / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.1105, allocations: 34.75 kB / 429.6 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1107, allocations: 16.88 kB / 429.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.111, allocations: 208.1 kB / 429.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.111, allocations: 384 / 429.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.111, allocations: 8.375 kB / 429.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.1113, allocations: 134 kB / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1113, allocations: 0 / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.1114, allocations: 0 / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1114, allocations: 0 / 430 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.084e-05/0.1115, allocations: 31.92 kB / 430 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003862/0.1118, allocations: 286.6 kB / 430.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002563/0.1121, allocations: 156.9 kB / 430.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.004e-05/0.1122, allocations: 42.56 kB / 430.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1122, allocations: 0 / 430.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.1122, allocations: 42.55 kB / 430.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.1122, allocations: 0 / 430.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003041/0.1125, allocations: 97.48 kB / 430.6 MB, free: 0.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.629e-05/0.1126, allocations: 114.8 kB / 430.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.1128, allocations: 138.1 kB / 430.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.1128, allocations: 29.7 kB / 430.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.1128, allocations: 88.14 kB / 431 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.1129, allocations: 15.88 kB / 431 MB, free: 420 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.1129, allocations: 21.72 kB / 431 MB, free: 392 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.113, allocations: 322.8 kB / 431.3 MB, free: 60 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.732e-05/0.1131, allocations: 11.94 kB / 431.3 MB, free: 48 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.523e-05/0.1132, allocations: 52.28 kB / 431.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.1133, allocations: 64.2 kB / 431.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1133, allocations: 0 / 431.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001705/0.1135, allocations: 89.5 kB / 431.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1135, allocations: 4 kB / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1135, allocations: 4 kB / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.1135, allocations: 0 / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.213e-05/0.1136, allocations: 11.98 kB / 431.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1136, allocations: 0 / 431.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.179e-05/0.1136, allocations: 11.95 kB / 431.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.1136, allocations: 4 kB / 431.6 MB, free: 15.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * 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 0.0001082/0.1138, allocations: 129.8 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.238e-05/0.1138, allocations: 49.64 kB / 431.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.218e-05/0.1139, allocations: 16.23 kB / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.1139, allocations: 0 / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.1139, allocations: 4 kB / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1139, allocations: 0 / 431.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002049/0.1141, allocations: 181.6 kB / 431.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1141, allocations: 0 / 431.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.425e-05/0.1142, allocations: 8 kB / 431.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1142, allocations: 0 / 431.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.1142, allocations: 8 kB / 432 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1142, allocations: 3.938 kB / 432 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1142, allocations: 0 / 432 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/0.1144, allocations: 193.1 kB / 432.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.1145, allocations: 89.05 kB / 432.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.1145, allocations: 8.062 kB / 432.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.766e-05/0.1146, allocations: 11.94 kB / 432.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.404e-05/0.1146, allocations: 4 kB / 432.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.1146, allocations: 0 / 432.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.61e-05/0.1147, allocations: 113.8 kB / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1147, allocations: 0 / 432.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.1149, allocations: 11.94 kB / 432.4 MB, free: 14.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0005916/0.1155, allocations: 0.7533 MB / 433.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001584/0.1157, allocations: 47.91 kB / 433.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1157, allocations: 4.25 kB / 433.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.585e-05/0.1157, allocations: 23.92 kB / 433.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.1161, allocations: 24 kB / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.1176, allocations: 1.455 MB / 434.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1179, allocations: 0.7002 MB / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.648e-05/0.1179, allocations: 7.781 kB / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.12e-05/0.118, allocations: 19.44 kB / 435.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.118, allocations: 0 / 435.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.1433, allocations: 1.816 MB / 437.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/7.809, allocations: 9.75 kB / 437.2 MB, free: 9.961 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToSquareWaveHold/AssignClockToSquareWaveHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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: 10.370447079651058]