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.001239/0.001239, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001393/0.001393, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.414/1.414, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.001418/0.001418, allocations: 47.92 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2482, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002125/0.2503, allocations: 0.8658 MB / 432.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003474/0.2507, allocations: 119.6 kB / 432.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.713e-05/0.2507, allocations: 3.938 kB / 432.9 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.856e-05/0.2508, allocations: 3.938 kB / 432.9 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.251, allocations: 15.92 kB / 432.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.2512, allocations: 35.91 kB / 433 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.2513, allocations: 43.84 kB / 433 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2514, allocations: 15.98 kB / 433 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.65e-05/0.2514, allocations: 19.92 kB / 433 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.421e-05/0.2515, allocations: 27.8 kB / 433.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.2515, allocations: 4 kB / 433.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.2515, allocations: 4 kB / 433.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.533e-05/0.2515, allocations: 19.92 kB / 433.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.2516, allocations: 23.81 kB / 433.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001172/0.2517, allocations: 63.39 kB / 433.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2517, allocations: 0 / 433.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2517, allocations: 0 / 433.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2517, allocations: 0 / 433.2 MB, free: 5.629 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.0004232/0.2521, allocations: 299.2 kB / 433.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2522, allocations: 8.031 kB / 433.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.382e-05/0.2522, allocations: 8.188 kB / 433.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.2522, allocations: 34.75 kB / 433.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.2522, allocations: 12.84 kB / 433.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.2524, allocations: 154.2 kB / 433.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.2524, allocations: 384 / 433.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.2525, allocations: 8.375 kB / 433.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.2527, allocations: 151.5 kB / 433.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2527, allocations: 7.938 kB / 433.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.2527, allocations: 4 kB / 433.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.2528, allocations: 0 / 433.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.554e-05/0.2528, allocations: 19.98 kB / 433.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001458/0.2529, allocations: 148.7 kB / 434 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.2531, allocations: 62.72 kB / 434.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.974e-05/0.2531, allocations: 48.81 kB / 434.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.335e-06/0.2532, allocations: 0 / 434.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.2532, allocations: 38.5 kB / 434.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 7.51e-07/0.2532, allocations: 0 / 434.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001949/0.2534, allocations: 105.7 kB / 434.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.2534, allocations: 51.41 kB / 434.3 MB, free: 4.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.2536, allocations: 152.2 kB / 434.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.2536, allocations: 25.7 kB / 434.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.946e-05/0.2536, allocations: 84.14 kB / 434.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.2536, allocations: 7.953 kB / 434.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.375e-05/0.2537, allocations: 33.64 kB / 434.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.2538, allocations: 314.8 kB / 434.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.266e-05/0.2539, allocations: 11.98 kB / 434.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.143e-05/0.2539, allocations: 58.88 kB / 435 MB, free: 3.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.467e-05/0.254, allocations: 78.73 kB / 435.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.254, allocations: 0 / 435.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001316/0.2541, allocations: 101.6 kB / 435.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.2541, allocations: 8 kB / 435.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2542, allocations: 4 kB / 435.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2542, allocations: 0 / 435.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.2542, allocations: 12 kB / 435.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2542, allocations: 4.312 kB / 435.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.287e-05/0.2543, allocations: 7.938 kB / 435.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.2543, allocations: 4 kB / 435.2 MB, free: 3.355 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.000101/0.2544, allocations: 129.8 kB / 435.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.2545, allocations: 85.56 kB / 435.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.2545, allocations: 16.89 kB / 435.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.2545, allocations: 0 / 435.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2545, allocations: 7.938 kB / 435.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.2545, allocations: 0 / 435.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.2547, allocations: 144.7 kB / 435.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2547, allocations: 3.984 kB / 435.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.328e-05/0.2547, allocations: 15.94 kB / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2547, allocations: 0 / 435.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.2547, allocations: 7.938 kB / 435.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2547, allocations: 3.938 kB / 435.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.2547, allocations: 4 kB / 435.6 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.2549, allocations: 109 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.698e-05/0.2549, allocations: 35.8 kB / 435.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.2549, allocations: 0 / 435.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.969e-05/0.2549, allocations: 0 / 435.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-06/0.2549, allocations: 0 / 435.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.255, allocations: 8 kB / 435.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.576e-05/0.255, allocations: 110.1 kB / 435.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.255, allocations: 4 kB / 435.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00019/0.2552, allocations: 8 kB / 435.9 MB, free: 2.598 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.0004922/0.2557, allocations: 0.6709 MB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000112/0.2558, allocations: 48.05 kB / 436.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.2558, allocations: 4 kB / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2558, allocations: 0 / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.2561, allocations: 50.84 kB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2573, allocations: 1.377 MB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.2576, allocations: 0.6924 MB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.79e-05/0.2576, allocations: 8.656 kB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.2577, allocations: 19.53 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2577, allocations: 3.938 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.2794, allocations: 1.989 MB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.56, allocations: 23.78 kB / 440.8 MB, free: 13.68 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: 12.98408839898184]