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.0009965/0.0009965, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008463/0.0008463, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8874/0.8874, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 2.034e-06/2.034e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.278e-05, allocations: 5.516 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001956/0.001979, allocations: 0.8403 MB / 319.3 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004088/0.002388, allocations: 123.5 kB / 319.4 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.083e-05/0.002478, allocations: 11.94 kB / 319.4 MB, free: 5.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.002598, allocations: 7.875 kB / 319.4 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.002745, allocations: 19.91 kB / 319.4 MB, free: 5.371 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.002942, allocations: 35.78 kB / 319.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.003058, allocations: 51.83 kB / 319.5 MB, free: 5.285 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.003161, allocations: 15.98 kB / 319.5 MB, free: 5.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.441e-05/0.003206, allocations: 27.91 kB / 319.6 MB, free: 5.242 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.46e-05/0.00328, allocations: 15.97 kB / 319.6 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.003304, allocations: 4 kB / 319.6 MB, free: 5.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.003314, allocations: 4 kB / 319.6 MB, free: 5.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.29e-05/0.003357, allocations: 15.92 kB / 319.6 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.008e-05/0.003387, allocations: 15.94 kB / 319.6 MB, free: 5.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001116/0.003499, allocations: 63.73 kB / 319.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.003501, allocations: 0 / 319.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.003502, allocations: 0 / 319.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.003506, allocations: 0 / 319.7 MB, free: 5.125 MB / 282.7 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.0003631/0.003869, allocations: 305.2 kB / 320 MB, free: 4.797 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.003914, allocations: 12.92 kB / 320 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.6e-05/0.00395, allocations: 38.69 kB / 320 MB, free: 4.738 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.003977, allocations: 12.84 kB / 320 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.004148, allocations: 145.6 kB / 320.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.004157, allocations: 384 / 320.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.004166, allocations: 4.375 kB / 320.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.0044, allocations: 143.7 kB / 320.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.004408, allocations: 192 / 320.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.004416, allocations: 384 / 320.3 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.004423, allocations: 4.125 kB / 320.3 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.057e-05/0.004463, allocations: 23.98 kB / 320.3 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.004867, allocations: 144.7 kB / 320.5 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.005001, allocations: 70.66 kB / 320.6 MB, free: 4.113 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.621e-05/0.005047, allocations: 40.88 kB / 320.6 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.005057, allocations: 4 kB / 320.6 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.005078, allocations: 30.56 kB / 320.6 MB, free: 4.027 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.00508, allocations: 0 / 320.6 MB, free: 4.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001687/0.005248, allocations: 101.8 kB / 320.7 MB, free: 3.922 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.005295, allocations: 59.66 kB / 320.8 MB, free: 3.852 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.542e-05/0.005381, allocations: 148.7 kB / 320.9 MB, free: 3.699 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.00539, allocations: 25.7 kB / 321 MB, free: 3.668 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.028e-05/0.005421, allocations: 92.14 kB / 321 MB, free: 3.574 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.211e-05/0.005433, allocations: 3.953 kB / 321.1 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.37e-05/0.005456, allocations: 21.66 kB / 321.1 MB, free: 3.543 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.428e-05/0.005531, allocations: 318.8 kB / 321.4 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.819e-06/0.005541, allocations: 4 kB / 321.4 MB, free: 3.219 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.232e-06/0.005547, allocations: 4 kB / 321.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.089e-05/0.005568, allocations: 8.859 kB / 321.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.005569, allocations: 3.938 kB / 321.4 MB, free: 3.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.151e-05/0.005611, allocations: 37.7 kB / 321.4 MB, free: 3.156 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.005624, allocations: 12.08 kB / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.005631, allocations: 4 kB / 321.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.005646, allocations: 7.875 kB / 321.5 MB, free: 3.133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.23e-05/0.005689, allocations: 0 / 321.5 MB, free: 3.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.005695, allocations: 3.984 kB / 321.5 MB, free: 3.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.103e-05/0.005706, allocations: 7.953 kB / 321.5 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.005711, allocations: 0 / 321.5 MB, free: 3.121 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.949e-05/0.005771, allocations: 113.8 kB / 321.6 MB, free: 3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.768e-05/0.005828, allocations: 85.62 kB / 321.7 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.199e-05/0.00586, allocations: 12.78 kB / 321.7 MB, free: 2.895 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.005863, allocations: 7.938 kB / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.005867, allocations: 0 / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.005869, allocations: 0 / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.568e-05/0.005935, allocations: 140.7 kB / 321.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.005936, allocations: 4 kB / 321.8 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.734e-05/0.005983, allocations: 19.92 kB / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.005984, allocations: 0 / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-06/0.005991, allocations: 0 / 321.9 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.005992, allocations: 3.938 kB / 321.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.005993, allocations: 0 / 321.9 MB, free: 2.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.337e-05/0.006076, allocations: 113 kB / 322 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.006107, allocations: 15.95 kB / 322 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.006119, allocations: 4 kB / 322 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.216e-05/0.006131, allocations: 7.922 kB / 322 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-06/0.006134, allocations: 3.984 kB / 322 MB, free: 2.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.006137, allocations: 3.938 kB / 322 MB, free: 2.516 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.691e-05/0.006184, allocations: 115.2 kB / 322.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006184, allocations: 0 / 322.1 MB, free: 2.402 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001148/0.006299, allocations: 4 kB / 322.1 MB, free: 2.398 MB / 282.7 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.0002972/0.006596, allocations: 0.675 MB / 322.8 MB, free: 1.695 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.424e-05/0.00667, allocations: 23.98 kB / 322.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.006672, allocations: 0 / 322.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.006672, allocations: 0 / 322.8 MB, free: 1.672 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.006912, allocations: 58.17 kB / 322.9 MB, free: 1.617 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000637/0.007549, allocations: 1.208 MB / 324.1 MB, free: 328 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.67e-05/0.007596, allocations: 83.25 kB / 324.2 MB, free: 224 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.269e-05/0.007608, allocations: 4 kB / 324.2 MB, free: 220 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.568e-05/0.007644, allocations: 24.59 kB / 324.2 MB, free: 196 kB / 282.7 MB Notification: Performance of SimCode: time 2.5e-07/0.007644, allocations: 0 / 324.2 MB, free: 196 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.02262, allocations: 2.434 MB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.046, allocations: 11 kB / 326.6 MB, free: 13.88 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/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: 8.745586946606636]