Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 104.7 kB / 18.49 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 189 kB / 21.43 MB, free: 1.676 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 47.92 kB / 366.3 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09551, allocations: 52.14 MB / 418.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002256/0.09776, allocations: 0.8524 MB / 419.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000398/0.09816, allocations: 127.6 kB / 419.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.557e-05/0.09825, allocations: 0 / 419.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.09836, allocations: 11.86 kB / 419.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.0985, allocations: 7.938 kB / 419.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.09873, allocations: 43.89 kB / 419.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.09885, allocations: 43.84 kB / 419.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.09897, allocations: 12 kB / 419.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.581e-05/0.099, allocations: 15.92 kB / 419.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.238e-05/0.09909, allocations: 31.84 kB / 419.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.09911, allocations: 4 kB / 419.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.09912, allocations: 8 kB / 419.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.874e-05/0.09918, allocations: 15.92 kB / 419.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.808e-05/0.09923, allocations: 23.81 kB / 419.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.09937, allocations: 63.61 kB / 419.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.09938, allocations: 0 / 419.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09938, allocations: 0 / 419.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.09939, allocations: 4 kB / 419.7 MB, free: 11.45 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.000533/0.09992, allocations: 389.4 kB / 420.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.09996, allocations: 12.03 kB / 420.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.481e-05/0.09997, allocations: 4.188 kB / 420.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.377e-05/0.1, allocations: 34.75 kB / 420.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.035e-05/0.1, allocations: 16.83 kB / 420.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.1003, allocations: 194.8 kB / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1003, allocations: 384 / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.1003, allocations: 4.375 kB / 420.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.1006, allocations: 155.5 kB / 420.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1006, allocations: 0 / 420.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.1006, allocations: 3.938 kB / 420.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.1006, allocations: 0 / 420.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.219e-05/0.1007, allocations: 23.98 kB / 420.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001708/0.1008, allocations: 177.5 kB / 420.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.101, allocations: 78.62 kB / 420.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.563e-05/0.1011, allocations: 36.89 kB / 420.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.1011, allocations: 0 / 420.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/0.1011, allocations: 42.5 kB / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.1011, allocations: 0 / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.000226/0.1013, allocations: 97.56 kB / 421 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.1014, allocations: 59.39 kB / 421 MB, free: 9.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.1015, allocations: 141.8 kB / 421.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.1016, allocations: 29.7 kB / 421.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.509e-05/0.1016, allocations: 80.14 kB / 421.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.1016, allocations: 11.98 kB / 421.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.1017, allocations: 25.67 kB / 421.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1018, allocations: 318.8 kB / 421.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.596e-05/0.1018, allocations: 12 kB / 421.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.174e-05/0.1019, allocations: 62.8 kB / 421.7 MB, free: 9.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.31e-05/0.102, allocations: 70.81 kB / 421.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.102, allocations: 0 / 421.8 MB, free: 9.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001414/0.1021, allocations: 97.38 kB / 421.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1022, allocations: 8 kB / 421.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1022, allocations: 4.25 kB / 421.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1022, allocations: 4 kB / 421.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.123e-05/0.1023, allocations: 23.92 kB / 421.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1023, allocations: 4 kB / 421.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.345e-05/0.1023, allocations: 4 kB / 421.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1023, allocations: 8 kB / 421.9 MB, free: 8.973 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.0001065/0.1024, allocations: 121.8 kB / 422 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1025, allocations: 93.78 kB / 422.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.493e-05/0.1026, allocations: 16.72 kB / 422.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1026, allocations: 3.938 kB / 422.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1026, allocations: 3.984 kB / 422.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1026, allocations: 4 kB / 422.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.1027, allocations: 169.6 kB / 422.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1027, allocations: 0 / 422.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.97e-05/0.1028, allocations: 19.92 kB / 422.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1028, allocations: 0 / 422.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.1028, allocations: 0 / 422.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1028, allocations: 0 / 422.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1028, allocations: 4 kB / 422.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001454/0.103, allocations: 121.3 kB / 422.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.432e-05/0.103, allocations: 100.9 kB / 422.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.54e-05/0.1031, allocations: 0 / 422.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.603e-05/0.1031, allocations: 8 kB / 422.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-06/0.1031, allocations: 0 / 422.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.1031, allocations: 0 / 422.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.285e-05/0.1032, allocations: 109.4 kB / 422.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1032, allocations: 4 kB / 422.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001967/0.1034, allocations: 8 kB / 422.7 MB, free: 8.098 MB / 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.0005559/0.1039, allocations: 0.6787 MB / 423.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.1041, allocations: 52.34 kB / 423.4 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1041, allocations: 4.062 kB / 423.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.71e-07/0.1041, allocations: 0 / 423.4 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1044, allocations: 43.77 kB / 423.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.1057, allocations: 1.379 MB / 424.9 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.1061, allocations: 0.697 MB / 425.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.71e-05/0.1061, allocations: 8.75 kB / 425.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.1061, allocations: 23.38 kB / 425.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1061, allocations: 3.938 kB / 425.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.1239, allocations: 1.859 MB / 427.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.061, allocations: 12.05 kB / 427.5 MB, free: 3.301 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 10.537640568974894]