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.001255/0.001255, 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 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.001343/0.001343, allocations: 215.8 kB / 24.52 MB, free: 3.91 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.001425/0.001425, allocations: 47.92 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2537, allocations: 53.36 MB / 431.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002131/0.2558, allocations: 0.8426 MB / 432.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003536/0.2562, allocations: 127.5 kB / 432.8 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.935e-05/0.2563, allocations: 4 kB / 432.8 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.551e-05/0.2564, allocations: 3.938 kB / 432.8 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.2565, allocations: 19.84 kB / 432.9 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.2567, allocations: 31.98 kB / 432.9 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000108/0.2568, allocations: 43.83 kB / 432.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.2569, allocations: 18.11 kB / 432.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.533e-05/0.2569, allocations: 15.92 kB / 433 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.257, allocations: 23.86 kB / 433 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.257, allocations: 4 kB / 433 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.257, allocations: 4 kB / 433 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.189e-05/0.2571, allocations: 19.92 kB / 433 MB, free: 5.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.369e-05/0.2571, allocations: 23.81 kB / 433 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.2573, allocations: 59.73 kB / 433.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2573, allocations: 0 / 433.1 MB, free: 5.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2573, allocations: 3.938 kB / 433.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.2573, allocations: 3.984 kB / 433.1 MB, free: 5.449 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.0004617/0.2577, allocations: 298.1 kB / 433.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2578, allocations: 8.031 kB / 433.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.497e-05/0.2578, allocations: 8.125 kB / 433.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.347e-05/0.2578, allocations: 34.75 kB / 433.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.2579, allocations: 12.84 kB / 433.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.2581, allocations: 146.3 kB / 433.6 MB, free: 4.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.2581, allocations: 4.375 kB / 433.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.2581, allocations: 4.375 kB / 433.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.2584, allocations: 151.5 kB / 433.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.2584, allocations: 0 / 433.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.2584, allocations: 0 / 433.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.2584, allocations: 0 / 433.8 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.044e-05/0.2585, allocations: 23.98 kB / 433.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.2586, allocations: 144.7 kB / 433.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.2588, allocations: 78.67 kB / 434 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.414e-05/0.2588, allocations: 32.84 kB / 434 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.2588, allocations: 4 kB / 434 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.2589, allocations: 34.5 kB / 434.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.2589, allocations: 0 / 434.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002116/0.2591, allocations: 105.8 kB / 434.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.2591, allocations: 63.34 kB / 434.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.2593, allocations: 148.5 kB / 434.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.2593, allocations: 25.7 kB / 434.4 MB, free: 3.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.597e-05/0.2593, allocations: 92.14 kB / 434.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.2593, allocations: 4 kB / 434.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.2594, allocations: 29.64 kB / 434.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.2595, allocations: 318.8 kB / 434.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.413e-05/0.2596, allocations: 11.98 kB / 434.8 MB, free: 3.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.755e-05/0.2596, allocations: 58.86 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.885e-05/0.2597, allocations: 74.75 kB / 435 MB, free: 3.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2597, allocations: 0 / 435 MB, free: 3.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001341/0.2598, allocations: 101.4 kB / 435.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.2598, allocations: 4 kB / 435.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2598, allocations: 4 kB / 435.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.2599, allocations: 4.25 kB / 435.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.203e-05/0.2599, allocations: 16 kB / 435.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.2599, allocations: 4 kB / 435.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.103e-05/0.26, allocations: 7.938 kB / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.26, allocations: 7.938 kB / 435.1 MB, free: 3.18 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.0001052/0.2601, allocations: 129.8 kB / 435.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2602, allocations: 81.53 kB / 435.3 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.2602, allocations: 20.7 kB / 435.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.2602, allocations: 0 / 435.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2602, allocations: 0 / 435.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2602, allocations: 4 kB / 435.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.2603, allocations: 136.7 kB / 435.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2603, allocations: 0 / 435.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.002e-05/0.2604, allocations: 23.88 kB / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.2604, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.2604, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2604, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2604, allocations: 0 / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.2606, allocations: 113 kB / 435.6 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.2606, allocations: 23.81 kB / 435.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.2606, allocations: 4 kB / 435.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.151e-05/0.2607, allocations: 4 kB / 435.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-06/0.2607, allocations: 0 / 435.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.2607, allocations: 4.125 kB / 435.7 MB, free: 2.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.545e-05/0.2607, allocations: 111.2 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2607, allocations: 3.938 kB / 435.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001966/0.2609, allocations: 12 kB / 435.8 MB, free: 2.441 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.0005089/0.2614, allocations: 0.6709 MB / 436.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.2616, allocations: 52.11 kB / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2616, allocations: 0 / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.2616, allocations: 0 / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.2618, allocations: 57.19 kB / 436.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.263, allocations: 1.372 MB / 437.9 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.582e-05/0.2631, allocations: 83.62 kB / 438 MB, free: 48 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.156e-05/0.2632, allocations: 8.672 kB / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.2632, allocations: 19.44 kB / 438 MB, free: 16 kB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2632, allocations: 3.938 kB / 438 MB, free: 12 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.2853, allocations: 2.041 MB / 440.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.7, allocations: 15.67 kB / 440.1 MB, free: 14.11 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.105931504978798]