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.001231/0.001231, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001329/0.001329, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.407/1.407, allocations: 230.6 MB / 254.1 MB, free: 15.09 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.1014, allocations: 53.32 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002518/0.1039, allocations: 0.8479 MB / 427.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004187/0.1043, allocations: 115.7 kB / 427.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.36e-05/0.1044, allocations: 7.938 kB / 427.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1045, allocations: 3.938 kB / 427.3 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.1046, allocations: 11.92 kB / 427.3 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1049, allocations: 43.83 kB / 427.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.105, allocations: 39.92 kB / 427.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1051, allocations: 15.98 kB / 427.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.172e-05/0.1051, allocations: 15.94 kB / 427.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.508e-05/0.1052, allocations: 35.78 kB / 427.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.1052, allocations: 0 / 427.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.41e-05/0.1052, allocations: 4 kB / 427.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.422e-05/0.1053, allocations: 19.92 kB / 427.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.512e-05/0.1053, allocations: 27.8 kB / 427.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1055, allocations: 59.67 kB / 427.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1055, allocations: 0 / 427.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1055, allocations: 0 / 427.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1055, allocations: 0 / 427.5 MB, free: 3.559 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.0005674/0.106, allocations: 391 kB / 427.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1061, allocations: 8.031 kB / 427.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.1061, allocations: 42.73 kB / 428 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.324e-05/0.1062, allocations: 12.84 kB / 428 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.1064, allocations: 192.2 kB / 428.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1064, allocations: 4.375 kB / 428.2 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-06/0.1064, allocations: 384 / 428.2 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1067, allocations: 151.7 kB / 428.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.1067, allocations: 3.938 kB / 428.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.1067, allocations: 7.922 kB / 428.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1067, allocations: 4 kB / 428.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.086e-05/0.1068, allocations: 23.98 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001836/0.107, allocations: 173.6 kB / 428.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.1071, allocations: 74.72 kB / 428.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.751e-05/0.1072, allocations: 44.8 kB / 428.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.1072, allocations: 4 kB / 428.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.1073, allocations: 34.56 kB / 428.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.1073, allocations: 0 / 428.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002125/0.1075, allocations: 101.7 kB / 428.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.1075, allocations: 63.41 kB / 428.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.1077, allocations: 137.8 kB / 429 MB, free: 1.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.1077, allocations: 29.7 kB / 429 MB, free: 1.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.889e-05/0.1077, allocations: 84.14 kB / 429.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.1078, allocations: 7.953 kB / 429.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.332e-05/0.1078, allocations: 25.7 kB / 429.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1079, allocations: 322.8 kB / 429.5 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.463e-05/0.108, allocations: 11.98 kB / 429.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.29e-05/0.108, allocations: 54.88 kB / 429.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.616e-05/0.1081, allocations: 78.73 kB / 429.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1081, allocations: 0 / 429.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001587/0.1083, allocations: 97.69 kB / 429.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1083, allocations: 10.44 kB / 429.7 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1083, allocations: 7.938 kB / 429.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1083, allocations: 0 / 429.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.382e-05/0.1084, allocations: 16 kB / 429.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1084, allocations: 0 / 429.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.844e-05/0.1084, allocations: 12.12 kB / 429.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.1084, allocations: 4 kB / 429.7 MB, free: 1.082 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.00011/0.1085, allocations: 133.8 kB / 429.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.1087, allocations: 85.58 kB / 430 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.357e-05/0.1087, allocations: 12.7 kB / 430 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1087, allocations: 4 kB / 430 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1087, allocations: 0 / 430 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1087, allocations: 0 / 430 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.1088, allocations: 169.6 kB / 430.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1088, allocations: 3.984 kB / 430.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.996e-05/0.1089, allocations: 12 kB / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1089, allocations: 3.938 kB / 430.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.1089, allocations: 4 kB / 430.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1089, allocations: 4 kB / 430.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1089, allocations: 3.938 kB / 430.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.1091, allocations: 109 kB / 430.3 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/0.1091, allocations: 104.9 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.574e-05/0.1092, allocations: 0 / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.558e-05/0.1092, allocations: 4 kB / 430.4 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.515e-06/0.1092, allocations: 0 / 430.4 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.1092, allocations: 8 kB / 430.4 MB, free: 336 kB / 350.1 MB Notification: Performance of sorting global known variables: time 7.469e-05/0.1093, allocations: 111.2 kB / 430.5 MB, free: 224 kB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1093, allocations: 0 / 430.5 MB, free: 224 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000198/0.1095, allocations: 8 kB / 430.5 MB, free: 216 kB / 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.0005468/0.11, allocations: 0.6754 MB / 431.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.1101, allocations: 47.98 kB / 431.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1101, allocations: 0 / 431.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.1101, allocations: 0 / 431.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.1104, allocations: 51.92 kB / 431.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1118, allocations: 1.378 MB / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.1122, allocations: 0.7001 MB / 433.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.715e-05/0.1122, allocations: 4.672 kB / 433.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.1123, allocations: 19.44 kB / 433.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.1123, allocations: 0 / 433.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1434, allocations: 1.831 MB / 435.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/7.833, allocations: 7.984 kB / 435.2 MB, free: 11.44 MB / 366.1 MB " [Timeout remaining time 652] (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] Reference file matches [Calling sys.exit(0), Time elapsed: 10.307202291907743]