Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 56.25 kB / 307.1 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.09794, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002806/0.1008, allocations: 0.8629 MB / 358.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004467/0.1013, allocations: 107.7 kB / 358.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.1014, allocations: 0 / 358.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.39e-05/0.1015, allocations: 7.922 kB / 358.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.1017, allocations: 11.94 kB / 358.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.102, allocations: 39.89 kB / 358.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.1021, allocations: 31.92 kB / 358.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.1023, allocations: 27.97 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.832e-05/0.1023, allocations: 15.88 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.626e-05/0.1024, allocations: 19.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.1024, allocations: 4 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.49e-05/0.1024, allocations: 4 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.1025, allocations: 19.92 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.839e-05/0.1025, allocations: 23.81 kB / 358.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.1027, allocations: 55.8 kB / 358.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1027, allocations: 0 / 358.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1027, allocations: 0 / 358.8 MB, free: 12.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.1027, allocations: 0 / 358.8 MB, free: 12.81 MB / 302.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.0005027/0.1032, allocations: 371.4 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.1033, allocations: 8.031 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.606e-05/0.1034, allocations: 42.73 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.1034, allocations: 8.844 kB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.1036, allocations: 192.1 kB / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.1036, allocations: 384 / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.1037, allocations: 8.375 kB / 359.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1039, allocations: 131.8 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.104, allocations: 3.938 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.104, allocations: 3.938 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.104, allocations: 4 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.14e-05/0.1041, allocations: 15.98 kB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001867/0.1042, allocations: 177.6 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.1044, allocations: 66.7 kB / 359.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.465e-05/0.1045, allocations: 40.84 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.1045, allocations: 3.938 kB / 359.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.1045, allocations: 38.56 kB / 359.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.1045, allocations: 0 / 359.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002126/0.1047, allocations: 89.52 kB / 360 MB, free: 11.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.585e-05/0.1048, allocations: 59.34 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.1049, allocations: 129.8 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.105, allocations: 29.7 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.105e-05/0.105, allocations: 80.14 kB / 360.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.105, allocations: 19.89 kB / 360.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.1051, allocations: 21.72 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1052, allocations: 318.8 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.065e-05/0.1052, allocations: 4 kB / 360.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.306e-05/0.1053, allocations: 66.86 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.936e-05/0.1054, allocations: 74.75 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1054, allocations: 0 / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001441/0.1055, allocations: 89.48 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1056, allocations: 7.938 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1056, allocations: 0 / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1056, allocations: 4 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.912e-05/0.1056, allocations: 4 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.1056, allocations: 256 / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.87e-05/0.1057, allocations: 19.84 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1057, allocations: 4 kB / 360.9 MB, free: 10.43 MB / 302.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 0.000102/0.1058, allocations: 128.4 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.1059, allocations: 73.53 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.74e-05/0.106, allocations: 12.38 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.106, allocations: 0 / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.106, allocations: 0 / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.106, allocations: 0 / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.1061, allocations: 169.7 kB / 361.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1062, allocations: 8.172 kB / 361.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.1062, allocations: 3.938 kB / 361.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.1062, allocations: 7.875 kB / 361.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.1062, allocations: 4 kB / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1062, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1062, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.1064, allocations: 105.3 kB / 361.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.377e-05/0.1065, allocations: 104.9 kB / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.1065, allocations: 3.938 kB / 361.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.769e-05/0.1065, allocations: 0 / 361.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-06/0.1065, allocations: 0 / 361.5 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.1065, allocations: 8 kB / 361.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.194e-05/0.1066, allocations: 99.25 kB / 361.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1066, allocations: 0 / 361.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002113/0.1068, allocations: 12 kB / 361.6 MB, free: 9.602 MB / 302.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.0005241/0.1074, allocations: 0.6592 MB / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.1075, allocations: 47.84 kB / 362.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1075, allocations: 0 / 362.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.1075, allocations: 4 kB / 362.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.1079, allocations: 36.58 kB / 362.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1093, allocations: 1.323 MB / 363.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1096, allocations: 0.7012 MB / 364.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.436e-05/0.1096, allocations: 7.953 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.1097, allocations: 19.38 kB / 364.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1097, allocations: 0 / 364.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.1309, allocations: 1.658 MB / 366.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.38/7.511, allocations: 4.062 kB / 366.1 MB, free: 5.051 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches