Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008196/0.0008196, allocations: 179.5 kB / 16.77 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006866/0.0006867, allocations: 93.11 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06261/0.06261, allocations: 12.21 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003757, allocations: 19.98 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07618/0.07656, allocations: 50.28 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.0009706/0.07758, allocations: 0.5598 MB / 443.1 MB, free: 16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002646/0.07786, allocations: 139.6 kB / 443.2 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.483e-05/0.07793, allocations: 0 / 443.2 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.852e-05/0.07797, allocations: 3.938 kB / 443.2 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.07809, allocations: 7.984 kB / 443.2 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.07829, allocations: 35.91 kB / 443.2 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.825e-05/0.07838, allocations: 39.91 kB / 443.3 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.333e-05/0.07848, allocations: 23.97 kB / 443.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.822e-05/0.07853, allocations: 23.8 kB / 443.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.249e-05/0.07857, allocations: 11.94 kB / 443.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.07859, allocations: 4 kB / 443.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.07861, allocations: 0 / 443.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.282e-05/0.07864, allocations: 11.92 kB / 443.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.267e-05/0.07868, allocations: 45.56 kB / 443.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.006e-05/0.07875, allocations: 39.94 kB / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.07876, allocations: 0 / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.07876, allocations: 0 / 443.4 MB, free: 15.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.07877, allocations: 0 / 443.4 MB, free: 15.61 MB / 298.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.0003031/0.07908, allocations: 359.5 kB / 443.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.07913, allocations: 19.91 kB / 443.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.808e-05/0.07916, allocations: 30.75 kB / 443.8 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.07919, allocations: 8.844 kB / 443.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.07934, allocations: 188.2 kB / 444 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.07935, allocations: 8.375 kB / 444 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.07937, allocations: 8.375 kB / 444 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.07965, allocations: 135.8 kB / 444.2 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.07967, allocations: 3.938 kB / 444.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.07969, allocations: 4 kB / 444.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.0797, allocations: 0 / 444.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.688e-05/0.07974, allocations: 12 kB / 444.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.07986, allocations: 181.5 kB / 444.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.07999, allocations: 70.66 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.826e-05/0.08004, allocations: 36.89 kB / 444.5 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.382e-05/0.08006, allocations: 0 / 444.5 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.08009, allocations: 34.56 kB / 444.5 MB, free: 14.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.52e-07/0.08009, allocations: 8 kB / 444.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001539/0.08025, allocations: 81.62 kB / 444.6 MB, free: 14.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.0803, allocations: 59.25 kB / 444.7 MB, free: 14.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.439e-05/0.08038, allocations: 130.8 kB / 444.8 MB, free: 14.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.788e-06/0.0804, allocations: 33.69 kB / 444.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.08043, allocations: 84.14 kB / 444.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.08045, allocations: 3.984 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.08046, allocations: 4 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/0.08051, allocations: 322.8 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.497e-05/0.08053, allocations: 8 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.115e-05/0.08057, allocations: 58.8 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.213e-05/0.08063, allocations: 74.75 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.08063, allocations: 3.938 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.466e-05/0.08073, allocations: 93.41 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.08075, allocations: 7.938 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.08076, allocations: 4 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.08078, allocations: 3.984 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.546e-05/0.0808, allocations: 4 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.08081, allocations: 4 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.416e-05/0.08085, allocations: 0 / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.08086, allocations: 4.25 kB / 445.5 MB, free: 13.28 MB / 298.7 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.08092, allocations: 135 kB / 445.6 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.08099, allocations: 73.84 kB / 445.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.767e-05/0.08103, allocations: 16.36 kB / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.08103, allocations: 0 / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.08104, allocations: 0 / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.08105, allocations: 0 / 445.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.982e-05/0.08111, allocations: 173.6 kB / 445.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.08112, allocations: 0 / 445.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.068e-05/0.08113, allocations: 3.938 kB / 445.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.08114, allocations: 7.938 kB / 445.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.08115, allocations: 3.984 kB / 445.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.08116, allocations: 4.078 kB / 445.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08117, allocations: 3.984 kB / 445.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.959e-05/0.08125, allocations: 93.03 kB / 446 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.003e-05/0.0813, allocations: 96.98 kB / 446.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.08132, allocations: 7.938 kB / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.366e-05/0.08134, allocations: 0 / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-06/0.08135, allocations: 4 kB / 446.1 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.08136, allocations: 4 kB / 446.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.334e-05/0.0814, allocations: 103.2 kB / 446.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08141, allocations: 0 / 446.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001989/0.08161, allocations: 8 kB / 446.2 MB, free: 12.45 MB / 298.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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002936/0.08191, allocations: 0.6592 MB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.316e-05/0.082, allocations: 43.92 kB / 446.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.08201, allocations: 3.938 kB / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.08202, allocations: 0 / 446.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.08231, allocations: 40.14 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004897/0.08281, allocations: 0.5325 MB / 447.5 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.08295, allocations: 0.6965 MB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.08299, allocations: 23.42 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.08299, allocations: 0 / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.26/2.343, allocations: 0.9966 MB / 449.2 MB, free: 9.324 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,unitDelay1.y,xor.y Variables in the result:assignClock1.u,assignClock1.y,integerConstant.k,integerConstant.y,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(unitDelay1.u),time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start,xor.u1,xor.u2,xor.y