Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 115.9 kB / 17.06 MB, free: 5.816 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 196 kB / 18.01 MB, free: 4.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2622, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002212/0.2644, allocations: 0.8655 MB / 401.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000354/0.2648, allocations: 112.6 kB / 401.2 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.161e-05/0.2649, allocations: 6.188 kB / 401.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.796e-05/0.265, allocations: 3.938 kB / 401.2 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.2651, allocations: 9 kB / 401.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.2654, allocations: 35.45 kB / 401.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001207/0.2655, allocations: 42.78 kB / 401.3 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.2656, allocations: 21.09 kB / 401.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.2656, allocations: 20.08 kB / 401.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.966e-05/0.2657, allocations: 19.95 kB / 401.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.2657, allocations: 3.219 kB / 401.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.418e-05/0.2657, allocations: 3.781 kB / 401.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.711e-05/0.2658, allocations: 19.94 kB / 401.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.49e-05/0.2658, allocations: 24.38 kB / 401.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001339/0.266, allocations: 48.06 kB / 401.5 MB, free: 7.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.266, allocations: 0 / 401.5 MB, free: 7.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.266, allocations: 0 / 401.5 MB, free: 7.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.266, allocations: 5.531 kB / 401.5 MB, free: 7.516 MB / 318.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.0004701/0.2665, allocations: 380.8 kB / 401.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.2665, allocations: 12.92 kB / 401.9 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.2666, allocations: 41.34 kB / 401.9 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.2666, allocations: 8.984 kB / 401.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.2669, allocations: 194.1 kB / 402.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2669, allocations: 2.75 kB / 402.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.2669, allocations: 3.188 kB / 402.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.2672, allocations: 135.4 kB / 402.2 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.2672, allocations: 3.938 kB / 402.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.2673, allocations: 4 kB / 402.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2673, allocations: 7.938 kB / 402.2 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.088e-05/0.2673, allocations: 12 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.2675, allocations: 177.6 kB / 402.4 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.2677, allocations: 66.66 kB / 402.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.624e-05/0.2677, allocations: 44.88 kB / 402.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.787e-06/0.2678, allocations: 0 / 402.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.2678, allocations: 30.56 kB / 402.6 MB, free: 6.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2678, allocations: 0 / 402.6 MB, free: 6.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002091/0.268, allocations: 93.56 kB / 402.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.2681, allocations: 55.41 kB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.2682, allocations: 133.1 kB / 402.8 MB, free: 6.012 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.2682, allocations: 25.7 kB / 402.9 MB, free: 5.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.2683, allocations: 92.12 kB / 403 MB, free: 5.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.2683, allocations: 3.938 kB / 403 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.2684, allocations: 29.67 kB / 403 MB, free: 5.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2685, allocations: 326.8 kB / 403.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.194e-05/0.2685, allocations: 4 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.068e-05/0.2686, allocations: 58.8 kB / 403.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.412e-05/0.2687, allocations: 74.75 kB / 403.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.2687, allocations: 0 / 403.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001323/0.2688, allocations: 93.48 kB / 403.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2689, allocations: 7.938 kB / 403.5 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2689, allocations: 4 kB / 403.5 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.2689, allocations: 4 kB / 403.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.692e-05/0.2689, allocations: 0 / 403.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2689, allocations: 4 kB / 403.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.054e-05/0.269, allocations: 15.89 kB / 403.6 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.269, allocations: 4 kB / 403.6 MB, free: 5.199 MB / 318.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.963e-05/0.2691, allocations: 130 kB / 403.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.517e-05/0.2692, allocations: 77.89 kB / 403.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.2692, allocations: 8.375 kB / 403.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2692, allocations: 0 / 403.8 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2692, allocations: 4 kB / 403.8 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2693, allocations: 0 / 403.8 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.2694, allocations: 169.6 kB / 404 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2694, allocations: 0 / 404 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.2694, allocations: 3.938 kB / 404 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.2694, allocations: 7.938 kB / 404 MB, free: 4.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.034e-06/0.2694, allocations: 7.938 kB / 404 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2694, allocations: 4.078 kB / 404 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2694, allocations: 3.984 kB / 404 MB, free: 4.727 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.2696, allocations: 101.1 kB / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.534e-05/0.2697, allocations: 93.05 kB / 404.2 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.648e-05/0.2697, allocations: 3.938 kB / 404.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.446e-05/0.2697, allocations: 0 / 404.2 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-06/0.2697, allocations: 8 kB / 404.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.2697, allocations: 0 / 404.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.781e-05/0.2698, allocations: 103.2 kB / 404.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2698, allocations: 4 kB / 404.3 MB, free: 4.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001936/0.27, allocations: 8 kB / 404.3 MB, free: 4.375 MB / 318.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.0005396/0.2705, allocations: 0.667 MB / 405 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.2707, allocations: 43.92 kB / 405 MB, free: 3.637 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2707, allocations: 0 / 405 MB, free: 3.637 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2707, allocations: 0 / 405 MB, free: 3.637 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003003/0.271, allocations: 50.27 kB / 405.1 MB, free: 3.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.2721, allocations: 1.325 MB / 406.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.2725, allocations: 0.6961 MB / 407.1 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.305e-05/0.2725, allocations: 7.984 kB / 407.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.809e-05/0.2725, allocations: 19.44 kB / 407.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2725, allocations: 0 / 407.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02256/0.2951, allocations: 1.691 MB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.33, allocations: 6.906 kB / 408.8 MB, free: 15.82 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.csv","/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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:time,periodicClock.factor,periodicClock.resolution,previous(unitDelay1.u),assignClock1.u,assignClock1.y