Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001413/0.001413, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001488/0.001488, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.488/1.488, allocations: 230.5 MB / 258.2 MB, free: 7.785 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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 59.91 kB / 378.5 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3106, allocations: 53.41 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002482/0.3131, allocations: 0.858 MB / 432.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004232/0.3135, allocations: 115.6 kB / 432.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.3136, allocations: 3.938 kB / 432.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.3137, allocations: 3.938 kB / 432.9 MB, free: 5.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.3138, allocations: 11.92 kB / 432.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002495/0.3141, allocations: 43.89 kB / 432.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.3142, allocations: 43.86 kB / 433 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.3144, allocations: 14.09 kB / 433 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.877e-05/0.3144, allocations: 23.86 kB / 433 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.864e-05/0.3145, allocations: 27.84 kB / 433 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.3145, allocations: 4 kB / 433 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.309e-05/0.3145, allocations: 4 kB / 433.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.481e-05/0.3146, allocations: 15.94 kB / 433.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.352e-05/0.3146, allocations: 19.86 kB / 433.1 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.3148, allocations: 59.67 kB / 433.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3148, allocations: 0 / 433.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3148, allocations: 0 / 433.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.3148, allocations: 4 kB / 433.1 MB, free: 5.227 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004837/0.3153, allocations: 302 kB / 433.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3153, allocations: 12.03 kB / 433.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.608e-05/0.3153, allocations: 192 / 433.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.02e-05/0.3154, allocations: 42.73 kB / 433.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.3154, allocations: 12.84 kB / 433.5 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.3156, allocations: 138.3 kB / 433.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3157, allocations: 4.375 kB / 433.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.3157, allocations: 384 / 433.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.316, allocations: 159.5 kB / 433.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.316, allocations: 0 / 433.8 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.316, allocations: 3.938 kB / 433.8 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.316, allocations: 4 kB / 433.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.387e-05/0.3161, allocations: 31.97 kB / 433.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.3162, allocations: 132.8 kB / 434 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.3164, allocations: 74.64 kB / 434 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.06e-05/0.3165, allocations: 40.89 kB / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.3165, allocations: 0 / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3165, allocations: 38.5 kB / 434.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 7.72e-07/0.3165, allocations: 0 / 434.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.000238/0.3168, allocations: 97.61 kB / 434.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.3168, allocations: 63.39 kB / 434.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.317, allocations: 144.4 kB / 434.4 MB, free: 3.785 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.317, allocations: 29.64 kB / 434.5 MB, free: 3.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.57e-05/0.317, allocations: 84.14 kB / 434.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3171, allocations: 15.92 kB / 434.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.3171, allocations: 21.72 kB / 434.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3172, allocations: 322.8 kB / 434.9 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.728e-05/0.3173, allocations: 12 kB / 434.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.683e-05/0.3173, allocations: 54.86 kB / 435 MB, free: 3.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.244e-05/0.3174, allocations: 74.75 kB / 435 MB, free: 3.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3174, allocations: 4 kB / 435 MB, free: 3.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001322/0.3176, allocations: 97.38 kB / 435.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3176, allocations: 8 kB / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3176, allocations: 0 / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3176, allocations: 4 kB / 435.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.665e-05/0.3177, allocations: 15.98 kB / 435.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3177, allocations: 4.25 kB / 435.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.455e-05/0.3177, allocations: 7.938 kB / 435.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.3177, allocations: 12 kB / 435.2 MB, free: 2.953 MB / 334.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.0001246/0.3179, allocations: 129.7 kB / 435.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.318, allocations: 85.67 kB / 435.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.318, allocations: 16.72 kB / 435.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.318, allocations: 0 / 435.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.318, allocations: 0 / 435.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.318, allocations: 4 kB / 435.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.3182, allocations: 136.7 kB / 435.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3182, allocations: 4 kB / 435.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.3182, allocations: 19.92 kB / 435.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3182, allocations: 0 / 435.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.3182, allocations: 3.938 kB / 435.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3182, allocations: 4 kB / 435.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3182, allocations: 0 / 435.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.3184, allocations: 109.4 kB / 435.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-05/0.3184, allocations: 23.83 kB / 435.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.3185, allocations: 7.984 kB / 435.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.114e-05/0.3185, allocations: 0 / 435.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-06/0.3185, allocations: 0 / 435.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.3185, allocations: 12 kB / 435.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.037e-05/0.3186, allocations: 103.5 kB / 435.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3186, allocations: 0 / 435.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002246/0.3188, allocations: 11.94 kB / 435.8 MB, free: 2.215 MB / 334.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.0005873/0.3194, allocations: 0.6748 MB / 436.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001409/0.3195, allocations: 51.91 kB / 436.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3195, allocations: 0.5625 kB / 436.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.3195, allocations: 4 kB / 436.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003226/0.3199, allocations: 43.94 kB / 436.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.3212, allocations: 1.377 MB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.398e-05/0.3213, allocations: 79.31 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.134e-05/0.3214, allocations: 4.672 kB / 438.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.3214, allocations: 31.36 kB / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3214, allocations: 0 / 438.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3479, allocations: 2.049 MB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.08, allocations: 8 kB / 440.2 MB, free: 13.86 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 13.703519053990021]