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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001735/0.001735, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 230.5 MB / 258.2 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 59.91 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3284, allocations: 53.4 MB / 432 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002602/0.331, allocations: 0.889 MB / 432.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003922/0.3314, allocations: 107.6 kB / 433 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.489e-05/0.3315, allocations: 3.938 kB / 433 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.209e-05/0.3316, allocations: 3.938 kB / 433 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.3317, allocations: 15.92 kB / 433 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.332, allocations: 31.91 kB / 433 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.3321, allocations: 39.97 kB / 433 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.3323, allocations: 27.91 kB / 433.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.084e-05/0.3323, allocations: 15.88 kB / 433.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.376e-05/0.3324, allocations: 15.92 kB / 433.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.065e-05/0.3324, allocations: 4 kB / 433.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.528e-05/0.3324, allocations: 4 kB / 433.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.835e-05/0.3325, allocations: 15.92 kB / 433.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.63e-05/0.3325, allocations: 23.81 kB / 433.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001662/0.3327, allocations: 59.52 kB / 433.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.3327, allocations: 4 kB / 433.2 MB, free: 5.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3327, allocations: 4 kB / 433.2 MB, free: 5.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.3327, allocations: 4 kB / 433.2 MB, free: 5.469 MB / 334.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.000493/0.3332, allocations: 287 kB / 433.5 MB, free: 5.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.3332, allocations: 12.03 kB / 433.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.549e-05/0.3333, allocations: 192 / 433.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5e-05/0.3333, allocations: 42.73 kB / 433.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.3334, allocations: 12.83 kB / 433.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003192/0.3337, allocations: 141.1 kB / 433.7 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.3337, allocations: 4.375 kB / 433.7 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.3337, allocations: 8.375 kB / 433.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.334, allocations: 135.5 kB / 433.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.334, allocations: 3.938 kB / 433.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.334, allocations: 0 / 433.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.334, allocations: 8 kB / 433.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.653e-05/0.3341, allocations: 12 kB / 433.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001979/0.3343, allocations: 140.7 kB / 434 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.3345, allocations: 66.75 kB / 434.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.189e-05/0.3346, allocations: 36.78 kB / 434.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.3346, allocations: 4 kB / 434.1 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.3346, allocations: 42.5 kB / 434.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3346, allocations: 0 / 434.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002715/0.3349, allocations: 77.64 kB / 434.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.335, allocations: 59.41 kB / 434.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.3351, allocations: 133.8 kB / 434.4 MB, free: 4.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.3352, allocations: 25.7 kB / 434.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.523e-05/0.3352, allocations: 88.14 kB / 434.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.3352, allocations: 7.938 kB / 434.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.3353, allocations: 29.72 kB / 434.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.3355, allocations: 318.8 kB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.529e-05/0.3355, allocations: 12 kB / 434.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.036e-05/0.3356, allocations: 54.86 kB / 434.9 MB, free: 3.531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.3357, allocations: 74.75 kB / 435 MB, free: 3.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3357, allocations: 4 kB / 435 MB, free: 3.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001552/0.3358, allocations: 89.5 kB / 435.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3359, allocations: 7.938 kB / 435.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.3359, allocations: 7.938 kB / 435.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3359, allocations: 0 / 435.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.97e-05/0.3359, allocations: 4 kB / 435.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3359, allocations: 4.25 kB / 435.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/0.336, allocations: 7.938 kB / 435.1 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.336, allocations: 12 kB / 435.2 MB, free: 3.293 MB / 334.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.0001204/0.3361, allocations: 125.7 kB / 435.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3362, allocations: 77.77 kB / 435.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.212e-05/0.3362, allocations: 12.36 kB / 435.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3362, allocations: 3.938 kB / 435.4 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3362, allocations: 4 kB / 435.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3363, allocations: 0 / 435.4 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.3364, allocations: 140.7 kB / 435.5 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.3364, allocations: 0 / 435.5 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.179e-05/0.3364, allocations: 3.984 kB / 435.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3364, allocations: 7.938 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.3364, allocations: 0 / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3364, allocations: 0 / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3364, allocations: 3.938 kB / 435.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.3366, allocations: 97.08 kB / 435.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.88e-05/0.3366, allocations: 19.88 kB / 435.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.121e-05/0.3366, allocations: 8 kB / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.772e-05/0.3367, allocations: 0 / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-06/0.3367, allocations: 0 / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-06/0.3367, allocations: 4 kB / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.268e-05/0.3368, allocations: 106.4 kB / 435.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3368, allocations: 0 / 435.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002003/0.337, allocations: 8 kB / 435.8 MB, free: 2.605 MB / 334.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.0005457/0.3375, allocations: 0.6636 MB / 436.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.3376, allocations: 39.92 kB / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/0.3376, allocations: 0 / 436.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.3376, allocations: 4 kB / 436.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.338, allocations: 47.42 kB / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.3394, allocations: 1.329 MB / 437.8 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.3399, allocations: 0.6924 MB / 438.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.421e-05/0.3399, allocations: 4.047 kB / 438.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.997e-05/0.34, allocations: 23.45 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.34, allocations: 4 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.3631, allocations: 1.876 MB / 440.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.04, allocations: 3.938 kB / 440.4 MB, free: 13.86 MB / 350.1 MB " [Timeout remaining time 649] (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 --stepSize=1.79641e-05 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 13.737143953039777]