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.001311/0.001311, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.002048/0.002048, allocations: 186.6 kB / 23.7 MB, free: 4.188 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.385/1.385, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 55.91 kB / 370.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2399, allocations: 52.19 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002204/0.2421, allocations: 0.8613 MB / 423.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003567/0.2424, allocations: 111.6 kB / 423.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.146e-05/0.2425, allocations: 8 kB / 423.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.617e-05/0.2426, allocations: 11.86 kB / 423.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.2427, allocations: 7.938 kB / 423.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001913/0.2429, allocations: 39.89 kB / 423.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.831e-05/0.243, allocations: 43.86 kB / 423.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.373e-05/0.2431, allocations: 15.97 kB / 423.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.058e-05/0.2431, allocations: 15.94 kB / 423.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.13e-05/0.2432, allocations: 23.84 kB / 423.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.2432, allocations: 4 kB / 423.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.2432, allocations: 4 kB / 423.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.2432, allocations: 19.98 kB / 423.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.518e-05/0.2433, allocations: 19.81 kB / 423.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2434, allocations: 64.09 kB / 423.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2434, allocations: 0 / 423.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2434, allocations: 0 / 423.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.2434, allocations: 0 / 423.8 MB, free: 13.19 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.0004404/0.2439, allocations: 302 kB / 424.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2439, allocations: 12.03 kB / 424.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.709e-05/0.244, allocations: 38.73 kB / 424.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.53e-05/0.244, allocations: 8.891 kB / 424.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.2442, allocations: 150.2 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.2442, allocations: 4.375 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.2442, allocations: 8.375 kB / 424.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.2446, allocations: 139.8 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2446, allocations: 3.938 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.2446, allocations: 4 kB / 424.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.2446, allocations: 3.984 kB / 424.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.792e-05/0.2446, allocations: 27.97 kB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.2448, allocations: 144.7 kB / 424.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2449, allocations: 70.64 kB / 424.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.387e-05/0.245, allocations: 40.89 kB / 424.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.779e-06/0.245, allocations: 3.938 kB / 424.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.245, allocations: 34.56 kB / 424.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.245, allocations: 0 / 424.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001993/0.2452, allocations: 101.5 kB / 424.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.2453, allocations: 63.39 kB / 424.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.2454, allocations: 133.8 kB / 425.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.2454, allocations: 33.7 kB / 425.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.2455, allocations: 88.14 kB / 425.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.2455, allocations: 3.984 kB / 425.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.01e-05/0.2456, allocations: 29.67 kB / 425.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2457, allocations: 318.8 kB / 425.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.059e-05/0.2457, allocations: 8 kB / 425.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.988e-05/0.2458, allocations: 67 kB / 425.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.544e-05/0.2459, allocations: 74.75 kB / 425.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2459, allocations: 0 / 425.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001399/0.246, allocations: 97.44 kB / 425.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.246, allocations: 10.59 kB / 425.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.246, allocations: 8.25 kB / 425.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.2461, allocations: 0 / 425.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.251e-05/0.2461, allocations: 19.98 kB / 425.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.2461, allocations: 3.938 kB / 425.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.597e-05/0.2462, allocations: 11.94 kB / 425.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2462, allocations: 4 kB / 425.8 MB, free: 10.91 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 9.712e-05/0.2463, allocations: 121.8 kB / 426 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.2464, allocations: 85.58 kB / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/0.2464, allocations: 8.906 kB / 426.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2464, allocations: 8 kB / 426.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.2464, allocations: 3.938 kB / 426.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2464, allocations: 0 / 426.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.2466, allocations: 140.7 kB / 426.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2466, allocations: 7.875 kB / 426.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.993e-05/0.2466, allocations: 11.98 kB / 426.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2466, allocations: 7.938 kB / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.2466, allocations: 0 / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2466, allocations: 0 / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2466, allocations: 0 / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.2468, allocations: 109 kB / 426.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.386e-05/0.2468, allocations: 27.83 kB / 426.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.2468, allocations: 3.984 kB / 426.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.284e-05/0.2468, allocations: 8 kB / 426.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/0.2468, allocations: 0 / 426.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.2469, allocations: 0 / 426.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.154e-05/0.2469, allocations: 107.3 kB / 426.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2469, allocations: 3.938 kB / 426.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001928/0.2471, allocations: 4 kB / 426.5 MB, free: 10.19 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.0005268/0.2477, allocations: 0.6788 MB / 427.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001185/0.2478, allocations: 56.45 kB / 427.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2478, allocations: 0 / 427.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.2478, allocations: 0 / 427.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.248, allocations: 36.25 kB / 427.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.2493, allocations: 1.384 MB / 428.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.202e-05/0.2494, allocations: 91.75 kB / 428.7 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.41e-05/0.2494, allocations: 0.6719 kB / 428.7 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.2495, allocations: 23.52 kB / 428.8 MB, free: 7.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2495, allocations: 3.938 kB / 428.8 MB, free: 7.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.2768, allocations: 2.371 MB / 431.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.6, allocations: 9.266 kB / 431.1 MB, free: 5.516 MB / 334.1 MB " [Timeout remaining time 649] (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] Reference file matches [Calling sys.exit(0), Time elapsed: 12.892888740170747]