Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.001251/0.001251, allocations: 107.5 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.00168/0.00168, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 7.738 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.RealSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 55.91 kB / 378.5 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2406, allocations: 53.36 MB / 431.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock): time 0.002328/0.2429, allocations: 0.9493 MB / 432.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003491/0.2433, allocations: 115.5 kB / 432.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.96e-05/0.2434, allocations: 0 / 432.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.79e-05/0.2434, allocations: 7.922 kB / 432.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.2435, allocations: 11.88 kB / 433 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000207/0.2437, allocations: 39.89 kB / 433 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.2438, allocations: 39.86 kB / 433 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.2439, allocations: 22.28 kB / 433.1 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.193e-05/0.244, allocations: 15.94 kB / 433.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.355e-05/0.244, allocations: 19.86 kB / 433.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.244, allocations: 4 kB / 433.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.244, allocations: 4 kB / 433.1 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.558e-05/0.2441, allocations: 15.92 kB / 433.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.591e-05/0.2441, allocations: 19.86 kB / 433.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.2442, allocations: 59.69 kB / 433.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2442, allocations: 0 / 433.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2442, allocations: 0 / 433.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.2443, allocations: 3.938 kB / 433.2 MB, free: 5.305 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.0004094/0.2447, allocations: 302 kB / 433.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2447, allocations: 8.031 kB / 433.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.487e-05/0.2447, allocations: 4.188 kB / 433.5 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.2448, allocations: 42.67 kB / 433.5 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.212e-05/0.2448, allocations: 12.84 kB / 433.6 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.245, allocations: 130.5 kB / 433.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.245, allocations: 4.375 kB / 433.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.245, allocations: 8.375 kB / 433.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2453, allocations: 139.3 kB / 433.8 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.2453, allocations: 3.938 kB / 433.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2453, allocations: 4 kB / 433.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.2453, allocations: 0 / 433.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.929e-05/0.2453, allocations: 12 kB / 433.8 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.2455, allocations: 148.6 kB / 434 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001299/0.2456, allocations: 62.72 kB / 434.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.676e-05/0.2457, allocations: 36.83 kB / 434.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.2457, allocations: 7.984 kB / 434.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.2457, allocations: 38.5 kB / 434.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.2457, allocations: 0 / 434.1 MB, free: 4.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001842/0.2459, allocations: 89.78 kB / 434.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.246, allocations: 55.41 kB / 434.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.2461, allocations: 136.8 kB / 434.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2461, allocations: 25.7 kB / 434.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.2462, allocations: 92.12 kB / 434.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.124e-05/0.2462, allocations: 0 / 434.5 MB, free: 3.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.841e-05/0.2462, allocations: 29.66 kB / 434.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2463, allocations: 314.8 kB / 434.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.238e-05/0.2464, allocations: 16 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.893e-05/0.2464, allocations: 54.86 kB / 434.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.079e-05/0.2465, allocations: 70.75 kB / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2465, allocations: 3.938 kB / 435 MB, free: 3.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001309/0.2466, allocations: 105.4 kB / 435.1 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.2466, allocations: 4 kB / 435.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2466, allocations: 0 / 435.1 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2467, allocations: 4 kB / 435.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.442e-05/0.2467, allocations: 12.19 kB / 435.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.2467, allocations: 4.312 kB / 435.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.405e-05/0.2468, allocations: 11.89 kB / 435.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-06/0.2468, allocations: 8.25 kB / 435.2 MB, free: 3.102 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: 0 () * 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 8.973e-05/0.2469, allocations: 125.8 kB / 435.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.247, allocations: 81.56 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.178e-05/0.247, allocations: 8.719 kB / 435.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.247, allocations: 4 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.247, allocations: 0 / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.247, allocations: 0 / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.2471, allocations: 140.7 kB / 435.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2471, allocations: 3.938 kB / 435.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.256e-05/0.2472, allocations: 12 kB / 435.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2472, allocations: 4 kB / 435.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.2472, allocations: 0 / 435.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2472, allocations: 7.938 kB / 435.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2472, allocations: 3.984 kB / 435.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.2473, allocations: 97.08 kB / 435.6 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.097e-05/0.2474, allocations: 23.88 kB / 435.7 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.2474, allocations: 7.984 kB / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.759e-05/0.2474, allocations: 0 / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-06/0.2474, allocations: 0 / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.2474, allocations: 4 kB / 435.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.2475, allocations: 99.27 kB / 435.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2475, allocations: 8 kB / 435.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001901/0.2477, allocations: 8 kB / 435.8 MB, free: 2.395 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: 0 () * 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.000465/0.2481, allocations: 0.6553 MB / 436.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.2482, allocations: 43.92 kB / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.2482, allocations: 0 / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.2482, allocations: 0 / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.2485, allocations: 43.16 kB / 436.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.2497, allocations: 1.36 MB / 437.9 MB, free: 144 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.54e-05/0.2498, allocations: 79.27 kB / 438 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.383e-05/0.2498, allocations: 11.94 kB / 438 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.2499, allocations: 19.44 kB / 438 MB, free: 12 kB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2499, allocations: 0 / 438 MB, free: 12 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.2711, allocations: 1.953 MB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.73, allocations: 12 kB / 439.9 MB, free: 14.2 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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:add.k1,add.k2,add.u1,add.u2,add.y,assignClock1.u,assignClock1.y,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start [Calling sys.exit(0), Time elapsed: 13.137625428033061]