Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001754/0.001754, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.002117/0.002117, allocations: 215 kB / 21.45 MB, free: 1.641 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.429/1.429, allocations: 230.6 MB / 254.8 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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 43.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09935, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002404/0.1018, allocations: 0.8727 MB / 427.9 MB, free: 3.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003742/0.1021, allocations: 111.6 kB / 428 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.311e-05/0.1022, allocations: 4 kB / 428 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.959e-05/0.1023, allocations: 7.875 kB / 428 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.1024, allocations: 7.922 kB / 428 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.1026, allocations: 39.89 kB / 428 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.1027, allocations: 43.92 kB / 428.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.1028, allocations: 15.98 kB / 428.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.682e-05/0.1029, allocations: 15.92 kB / 428.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.568e-05/0.1029, allocations: 19.86 kB / 428.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.1029, allocations: 4 kB / 428.1 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.332e-05/0.1029, allocations: 4 kB / 428.1 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.103, allocations: 15.92 kB / 428.2 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.103, allocations: 27.8 kB / 428.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.1032, allocations: 55.69 kB / 428.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1032, allocations: 0 / 428.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1032, allocations: 0 / 428.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.1032, allocations: 4 kB / 428.2 MB, free: 3.562 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.000458/0.1036, allocations: 371.2 kB / 428.6 MB, free: 3.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1037, allocations: 15.97 kB / 428.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.987e-05/0.1037, allocations: 4.172 kB / 428.6 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.1037, allocations: 38.75 kB / 428.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.1038, allocations: 8.891 kB / 428.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.104, allocations: 190.9 kB / 428.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.104, allocations: 12.38 kB / 428.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.1041, allocations: 4.375 kB / 428.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.1044, allocations: 131.5 kB / 429 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1044, allocations: 0 / 429 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1044, allocations: 4 kB / 429 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1044, allocations: 7.984 kB / 429 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.521e-05/0.1044, allocations: 19.98 kB / 429 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001686/0.1046, allocations: 165.7 kB / 429.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.1047, allocations: 58.66 kB / 429.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.145e-05/0.1048, allocations: 44.81 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.1048, allocations: 4 kB / 429.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1049, allocations: 38.5 kB / 429.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.1049, allocations: 0 / 429.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002015/0.1051, allocations: 89.56 kB / 429.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.1051, allocations: 55.41 kB / 429.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.1052, allocations: 133.8 kB / 429.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.1053, allocations: 29.7 kB / 429.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.1053, allocations: 84.14 kB / 429.7 MB, free: 1.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.1053, allocations: 7.953 kB / 429.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.1054, allocations: 29.7 kB / 429.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1055, allocations: 314.8 kB / 430.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.1055, allocations: 15.98 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.335e-05/0.1056, allocations: 50.88 kB / 430.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.324e-05/0.1057, allocations: 74.73 kB / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1057, allocations: 4 kB / 430.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001334/0.1058, allocations: 89.45 kB / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1058, allocations: 7.938 kB / 430.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1058, allocations: 4 kB / 430.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1058, allocations: 0 / 430.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.452e-05/0.1059, allocations: 11.98 kB / 430.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1059, allocations: 7.938 kB / 430.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.03e-05/0.1059, allocations: 8.188 kB / 430.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.1059, allocations: 8 kB / 430.3 MB, free: 1.176 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 (integerConstant.y,xor.y,xor.u2,xor.u1,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.386e-05/0.106, allocations: 117.8 kB / 430.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.435e-05/0.1061, allocations: 77.56 kB / 430.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.1061, allocations: 12.38 kB / 430.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1061, allocations: 3.938 kB / 430.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1062, allocations: 3.984 kB / 430.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1062, allocations: 0 / 430.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.1063, allocations: 169.7 kB / 430.7 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1063, allocations: 4 kB / 430.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.208e-05/0.1063, allocations: 4 kB / 430.7 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1063, allocations: 3.938 kB / 430.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1063, allocations: 0 / 430.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1063, allocations: 4 kB / 430.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.1063, allocations: 7.922 kB / 430.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.1064, allocations: 93.08 kB / 430.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.1065, allocations: 96.98 kB / 430.9 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.1065, allocations: 0 / 430.9 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.79e-05/0.1065, allocations: 8 kB / 430.9 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-06/0.1065, allocations: 3.938 kB / 430.9 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.1065, allocations: 4.188 kB / 430.9 MB, free: 484 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.533e-05/0.1066, allocations: 101.3 kB / 431 MB, free: 384 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1066, allocations: 3.938 kB / 431 MB, free: 380 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.1068, allocations: 12 kB / 431.1 MB, free: 368 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,xor.u1,xor.u2,xor.y,integerConstant.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.0005041/0.1073, allocations: 0.6597 MB / 431.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001263/0.1074, allocations: 47.84 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1074, allocations: 4 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.1074, allocations: 0 / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1077, allocations: 42.34 kB / 431.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.1089, allocations: 1.323 MB / 433.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1092, allocations: 0.6963 MB / 433.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.856e-05/0.1092, allocations: 4 kB / 433.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.1093, allocations: 19.42 kB / 433.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1093, allocations: 0 / 433.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01808/0.1274, allocations: 1.751 MB / 435.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/8.037, allocations: 15.91 kB / 435.6 MB, free: 11.76 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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,integerConstant.k,integerConstant.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start,xor.u1,xor.u2,xor.y [Calling sys.exit(0), Time elapsed: 10.662163872970268]