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.001368/0.001368, allocations: 120.1 kB / 18.49 MB, free: 4.566 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.00145/0.00145, allocations: 218.2 kB / 21.46 MB, free: 1.613 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.622/1.622, allocations: 230.4 MB / 254.7 MB, free: 15.01 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.002481/0.002481, allocations: 55.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1481, allocations: 53.38 MB / 427.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.00319/0.1513, allocations: 0.8415 MB / 427.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004783/0.1518, allocations: 119.7 kB / 428 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.1519, allocations: 3.938 kB / 428 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.152, allocations: 11.92 kB / 428 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.1522, allocations: 15.88 kB / 428 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.1525, allocations: 39.89 kB / 428.1 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.1526, allocations: 39.91 kB / 428.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.1528, allocations: 16 kB / 428.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.048e-05/0.1528, allocations: 15.92 kB / 428.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.1529, allocations: 23.86 kB / 428.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.922e-05/0.153, allocations: 4 kB / 428.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.2e-05/0.153, allocations: 0 / 428.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.153, allocations: 19.92 kB / 428.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.194e-05/0.1531, allocations: 31.73 kB / 428.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.1533, allocations: 67.62 kB / 428.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1533, allocations: 0 / 428.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1533, allocations: 0 / 428.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1533, allocations: 4 kB / 428.3 MB, free: 3.379 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.0006969/0.154, allocations: 383 kB / 428.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.154, allocations: 12.03 kB / 428.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.693e-05/0.1541, allocations: 192 / 428.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.476e-05/0.1541, allocations: 34.75 kB / 428.7 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.253e-05/0.1541, allocations: 16.84 kB / 428.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.1544, allocations: 196.2 kB / 428.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.1544, allocations: 384 / 428.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.1545, allocations: 8.375 kB / 428.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.1548, allocations: 147.5 kB / 429.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1548, allocations: 0 / 429.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1548, allocations: 11.98 kB / 429.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.1548, allocations: 0 / 429.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.867e-05/0.1549, allocations: 23.92 kB / 429.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002038/0.1551, allocations: 173.6 kB / 429.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.1553, allocations: 66.7 kB / 429.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.828e-05/0.1554, allocations: 44.88 kB / 429.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.1554, allocations: 4 kB / 429.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.1554, allocations: 38.44 kB / 429.4 MB, free: 2.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.1554, allocations: 4 kB / 429.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002555/0.1557, allocations: 101.8 kB / 429.5 MB, free: 1.953 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.1557, allocations: 55.39 kB / 429.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.1559, allocations: 143.7 kB / 429.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.1559, allocations: 25.7 kB / 429.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.156, allocations: 84.14 kB / 429.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.156, allocations: 15.94 kB / 429.9 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.156, allocations: 25.72 kB / 429.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1562, allocations: 318.8 kB / 430.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.344e-05/0.1562, allocations: 8 kB / 430.2 MB, free: 1.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.745e-05/0.1563, allocations: 62.8 kB / 430.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.1564, allocations: 78.75 kB / 430.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1564, allocations: 0 / 430.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001523/0.1566, allocations: 97.62 kB / 430.4 MB, free: 0.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.1566, allocations: 8 kB / 430.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1566, allocations: 3.938 kB / 430.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.1566, allocations: 4 kB / 430.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.934e-05/0.1567, allocations: 20.17 kB / 430.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.1567, allocations: 11.94 kB / 430.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.75e-05/0.1568, allocations: 4 kB / 430.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.1568, allocations: 4 kB / 430.5 MB, free: 0.9023 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.0001249/0.1569, allocations: 125.8 kB / 430.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.157, allocations: 81.52 kB / 430.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.833e-05/0.1571, allocations: 12.72 kB / 430.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1571, allocations: 0 / 430.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1571, allocations: 0 / 430.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1571, allocations: 4 kB / 430.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.1572, allocations: 177.6 kB / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1572, allocations: 0 / 430.9 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.976e-05/0.1573, allocations: 23.92 kB / 430.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1573, allocations: 0 / 430.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.1573, allocations: 0 / 430.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1573, allocations: 0 / 430.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1573, allocations: 4 kB / 430.9 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.1575, allocations: 113 kB / 431 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.1576, allocations: 104.9 kB / 431.1 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.1576, allocations: 0 / 431.1 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.869e-05/0.1576, allocations: 4 kB / 431.1 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-06/0.1576, allocations: 0 / 431.1 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.1576, allocations: 0 / 431.1 MB, free: 164 kB / 350.1 MB Notification: Performance of sorting global known variables: time 8.845e-05/0.1577, allocations: 109.8 kB / 431.2 MB, free: 56 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1577, allocations: 0 / 431.2 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1579, allocations: 12 kB / 431.2 MB, free: 44 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.0006408/0.1586, allocations: 0.6787 MB / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.1587, allocations: 39.92 kB / 432 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1587, allocations: 0 / 432 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.336e-06/0.1587, allocations: 4.562 kB / 432 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1591, allocations: 56.42 kB / 432 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1606, allocations: 1.383 MB / 433.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.1609, allocations: 0.6924 MB / 434.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.487e-05/0.161, allocations: 12.66 kB / 434.1 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.161, allocations: 19.44 kB / 434.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.161, allocations: 0 / 434.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.1801, allocations: 1.859 MB / 436 MB, free: 11.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.093, allocations: 21.75 kB / 436 MB, free: 11.23 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.011496432998683]