Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0018/0.0018, allocations: 196.7 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 226.5 MB / 244.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008159/0.000816, allocations: 97.67 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 11.94 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2389, allocations: 51.3 MB / 408.1 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.001145/0.2401, allocations: 0.5696 MB / 408.7 MB, free: 27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002855/0.2404, allocations: 111.7 kB / 408.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.257e-05/0.2405, allocations: 0 / 408.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.989e-05/0.2406, allocations: 3.938 kB / 408.8 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2407, allocations: 7.938 kB / 408.8 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.241, allocations: 31.02 kB / 408.9 MB, free: 26.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.626e-05/0.241, allocations: 31.92 kB / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.2412, allocations: 30.61 kB / 408.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.639e-05/0.2412, allocations: 7.938 kB / 408.9 MB, free: 26.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.2412, allocations: 15.92 kB / 408.9 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.2413, allocations: 0 / 408.9 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.224e-05/0.2413, allocations: 4 kB / 408.9 MB, free: 26.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.022e-05/0.2413, allocations: 13.67 kB / 409 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.177e-05/0.2414, allocations: 49.56 kB / 409 MB, free: 26.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.289e-05/0.2414, allocations: 23.94 kB / 409 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.2415, allocations: 4 kB / 409 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2415, allocations: 0 / 409 MB, free: 26.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.2415, allocations: 0.7812 kB / 409 MB, free: 26.67 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.0003264/0.2418, allocations: 361.7 kB / 409.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.2419, allocations: 8.031 kB / 409.4 MB, free: 26.26 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.915e-05/0.2419, allocations: 38.69 kB / 409.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.2419, allocations: 11.66 kB / 409.4 MB, free: 26.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.2421, allocations: 200 kB / 409.6 MB, free: 25.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.2421, allocations: 4.375 kB / 409.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.2421, allocations: 4.375 kB / 409.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002531/0.2424, allocations: 124.8 kB / 409.8 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.2424, allocations: 6.594 kB / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.2424, allocations: 8 kB / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2424, allocations: 0 / 409.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.748e-05/0.2425, allocations: 15.98 kB / 409.8 MB, free: 25.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001087/0.2426, allocations: 165.7 kB / 410 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.2427, allocations: 69.62 kB / 410 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.342e-05/0.2428, allocations: 36.83 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.2428, allocations: 4 kB / 410.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.2428, allocations: 34.56 kB / 410.1 MB, free: 25.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.2428, allocations: 0 / 410.1 MB, free: 25.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.000172/0.243, allocations: 85.53 kB / 410.2 MB, free: 25.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.2431, allocations: 67.38 kB / 410.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.267e-05/0.2432, allocations: 130.7 kB / 410.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.2432, allocations: 25.7 kB / 410.4 MB, free: 25.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.8e-05/0.2432, allocations: 88.08 kB / 410.5 MB, free: 25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.2432, allocations: 7.906 kB / 410.5 MB, free: 25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.388e-06/0.2432, allocations: 4 kB / 410.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.2433, allocations: 314.8 kB / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.63e-05/0.2433, allocations: 16 kB / 410.8 MB, free: 24.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.205e-05/0.2434, allocations: 54.86 kB / 410.9 MB, free: 24.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.218e-05/0.2434, allocations: 70.75 kB / 410.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2434, allocations: 0 / 410.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.612e-05/0.2435, allocations: 93.52 kB / 411 MB, free: 24.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2436, allocations: 11.94 kB / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2436, allocations: 0 / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2436, allocations: 4 kB / 411.1 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.696e-05/0.2436, allocations: 4 kB / 411.1 MB, free: 24.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.2436, allocations: 0 / 411.1 MB, free: 24.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.398e-05/0.2437, allocations: 7.906 kB / 411.1 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.2437, allocations: 4 kB / 411.1 MB, free: 24.36 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 6.75e-05/0.2437, allocations: 141.9 kB / 411.2 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.2438, allocations: 69.62 kB / 411.3 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.2438, allocations: 12.56 kB / 411.3 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.2439, allocations: 0 / 411.3 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2439, allocations: 7.938 kB / 411.3 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2439, allocations: 0 / 411.3 MB, free: 24.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.883e-05/0.244, allocations: 173.5 kB / 411.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.244, allocations: 0 / 411.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.083e-05/0.244, allocations: 4 kB / 411.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.244, allocations: 3.938 kB / 411.5 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.244, allocations: 7.938 kB / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.244, allocations: 0 / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.244, allocations: 3.938 kB / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.408e-05/0.2441, allocations: 97.42 kB / 411.6 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.2442, allocations: 89 kB / 411.7 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.2442, allocations: 7.938 kB / 411.7 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.44e-05/0.2442, allocations: 4 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-06/0.2442, allocations: 0 / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.2442, allocations: 4 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.277e-05/0.2443, allocations: 111.3 kB / 411.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2443, allocations: 0 / 411.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.2445, allocations: 4 kB / 411.8 MB, free: 23.53 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.0003027/0.2448, allocations: 0.6671 MB / 412.5 MB, free: 22.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.41e-05/0.2449, allocations: 39.92 kB / 412.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2449, allocations: 0 / 412.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.2449, allocations: 4 kB / 412.5 MB, free: 22.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.2452, allocations: 47.33 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005425/0.2458, allocations: 0.5232 MB / 413.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2459, allocations: 0.7043 MB / 413.8 MB, free: 21.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.246, allocations: 15.44 kB / 413.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.71e-07/0.246, allocations: 0 / 413.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.399/2.645, allocations: 0.9981 MB / 414.8 MB, free: 20.41 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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: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