Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001262/0.001262, allocations: 116.2 kB / 18.49 MB, free: 4.559 MB / 14.72 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.001342/0.001342, allocations: 218.9 kB / 21.46 MB, free: 1.605 MB / 14.72 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 1.418/1.418, allocations: 230.6 MB / 254.8 MB, free: 14.88 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 59.92 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 53.33 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00231/0.1064, allocations: 0.8376 MB / 427.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004135/0.1068, allocations: 127.6 kB / 428 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.73e-05/0.1069, allocations: 4 kB / 428 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.107, allocations: 7.875 kB / 428 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.1071, allocations: 11.94 kB / 428 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.1073, allocations: 43.83 kB / 428 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.1075, allocations: 39.91 kB / 428.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.1076, allocations: 15.98 kB / 428.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.461e-05/0.1076, allocations: 15.94 kB / 428.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.1077, allocations: 23.86 kB / 428.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.1077, allocations: 0 / 428.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-06/0.1077, allocations: 4 kB / 428.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.419e-05/0.1078, allocations: 27.91 kB / 428.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.423e-05/0.1078, allocations: 23.81 kB / 428.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.108, allocations: 59.67 kB / 428.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.108, allocations: 0 / 428.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.108, allocations: 3.984 kB / 428.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.758e-06/0.108, allocations: 0 / 428.3 MB, free: 3.531 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005277/0.1085, allocations: 387 kB / 428.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1086, allocations: 8.031 kB / 428.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.522e-05/0.1086, allocations: 8.188 kB / 428.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.794e-05/0.1086, allocations: 34.75 kB / 428.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.1086, allocations: 16.84 kB / 428.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.1089, allocations: 192.3 kB / 428.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.1089, allocations: 384 / 428.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.1089, allocations: 8.375 kB / 428.9 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1092, allocations: 159.4 kB / 429.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1092, allocations: 0 / 429.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.1092, allocations: 0 / 429.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1092, allocations: 0 / 429.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.779e-05/0.1093, allocations: 23.98 kB / 429.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.1095, allocations: 169.6 kB / 429.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1096, allocations: 82.58 kB / 429.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.447e-05/0.1097, allocations: 40.89 kB / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.1097, allocations: 0 / 429.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1098, allocations: 34.5 kB / 429.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.062e-06/0.1098, allocations: 0 / 429.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002499/0.11, allocations: 105.7 kB / 429.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.1101, allocations: 59.39 kB / 429.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.1102, allocations: 141.8 kB / 429.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.1102, allocations: 29.7 kB / 429.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.1103, allocations: 88.12 kB / 429.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1103, allocations: 7.953 kB / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.1104, allocations: 25.72 kB / 429.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1105, allocations: 314.8 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.608e-05/0.1106, allocations: 8 kB / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.101e-05/0.1106, allocations: 62.86 kB / 430.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.184e-05/0.1107, allocations: 78.73 kB / 430.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1107, allocations: 0 / 430.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000142/0.1109, allocations: 93.39 kB / 430.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1109, allocations: 10.34 kB / 430.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1109, allocations: 256 / 430.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1109, allocations: 8 kB / 430.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.828e-05/0.111, allocations: 15.98 kB / 430.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.111, allocations: 7.938 kB / 430.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.342e-05/0.111, allocations: 7.938 kB / 430.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.111, allocations: 8.312 kB / 430.4 MB, free: 1.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001375/0.1112, allocations: 124.2 kB / 430.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.1113, allocations: 85.56 kB / 430.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.972e-05/0.1113, allocations: 12.72 kB / 430.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1113, allocations: 4 kB / 430.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.1113, allocations: 0 / 430.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1113, allocations: 3.984 kB / 430.7 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.1115, allocations: 177.5 kB / 430.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1115, allocations: 0 / 430.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.141e-05/0.1116, allocations: 19.92 kB / 430.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1116, allocations: 0 / 430.9 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1116, allocations: 8 kB / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1116, allocations: 192 / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1116, allocations: 0 / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/0.1117, allocations: 121 kB / 431 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.43e-05/0.1118, allocations: 96.92 kB / 431.1 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.1118, allocations: 4 kB / 431.1 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.525e-05/0.1118, allocations: 4 kB / 431.1 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-06/0.1118, allocations: 0 / 431.1 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.1119, allocations: 0 / 431.1 MB, free: 312 kB / 350.1 MB Notification: Performance of sorting global known variables: time 8.565e-05/0.1119, allocations: 111.2 kB / 431.2 MB, free: 200 kB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1119, allocations: 0 / 431.2 MB, free: 200 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001967/0.1121, allocations: 16 kB / 431.2 MB, free: 184 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.1799/0.2921, allocations: 0.6672 MB / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001547/0.2922, allocations: 46.66 kB / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2922, allocations: 0 / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.453e-06/0.2922, allocations: 3.219 kB / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.2926, allocations: 43.56 kB / 432 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009116/0.2935, allocations: 1.377 MB / 433.4 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.2936, allocations: 0.6966 MB / 434 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.807e-05/0.2936, allocations: 7.578 kB / 434.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.2937, allocations: 19.81 kB / 434.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2937, allocations: 0 / 434.1 MB, free: 8.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01892/0.3126, allocations: 1.86 MB / 435.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.118, allocations: 17.67 kB / 436 MB, free: 8.004 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(unitDelay1.u),sum.k[1],sum.k[2],sum.nu,sum.u[1],sum.u[2],sum.y,time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start [Calling sys.exit(0), Time elapsed: 10.54595912998775]