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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001665/0.001665, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 43.92 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2487, allocations: 52.19 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002499/0.2512, allocations: 0.893 MB / 424.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004534/0.2517, allocations: 115.7 kB / 424.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.081e-05/0.2518, allocations: 0 / 424.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.057e-05/0.2518, allocations: 7.875 kB / 424.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.252, allocations: 11.92 kB / 424.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.2522, allocations: 35.91 kB / 424.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.2523, allocations: 35.97 kB / 424.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.2525, allocations: 15.98 kB / 424.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.824e-05/0.2525, allocations: 11.94 kB / 424.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.538e-05/0.2525, allocations: 27.8 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.2526, allocations: 4 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.221e-05/0.2526, allocations: 4 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.447e-05/0.2526, allocations: 19.92 kB / 424.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.2527, allocations: 27.8 kB / 424.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.2528, allocations: 47.61 kB / 424.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2528, allocations: 0 / 424.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2528, allocations: 4 kB / 424.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.2528, allocations: 0 / 424.7 MB, free: 13.35 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.0004235/0.2532, allocations: 298.9 kB / 425 MB, free: 13.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2533, allocations: 12.03 kB / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.354e-05/0.2533, allocations: 192 / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.78e-05/0.2533, allocations: 38.75 kB / 425 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.571e-05/0.2534, allocations: 16.88 kB / 425 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002412/0.2536, allocations: 130.3 kB / 425.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.2536, allocations: 8.375 kB / 425.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.2536, allocations: 4.375 kB / 425.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.2539, allocations: 127.6 kB / 425.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.2539, allocations: 3.938 kB / 425.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2539, allocations: 4 kB / 425.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.254, allocations: 7.984 kB / 425.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.578e-05/0.254, allocations: 15.94 kB / 425.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.2542, allocations: 140.7 kB / 425.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.2543, allocations: 66.73 kB / 425.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.221e-05/0.2544, allocations: 44.84 kB / 425.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.2544, allocations: 0 / 425.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.2544, allocations: 42.42 kB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.02e-07/0.2544, allocations: 0 / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002023/0.2546, allocations: 85.62 kB / 425.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.2547, allocations: 59.41 kB / 425.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.2548, allocations: 133.8 kB / 425.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.2548, allocations: 33.64 kB / 425.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.035e-05/0.2549, allocations: 84.14 kB / 426 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.2549, allocations: 7.984 kB / 426 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-05/0.2549, allocations: 25.67 kB / 426 MB, free: 11.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2551, allocations: 322.8 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.627e-05/0.2551, allocations: 8 kB / 426.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.615e-05/0.2551, allocations: 62.8 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.868e-05/0.2552, allocations: 74.75 kB / 426.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2552, allocations: 0 / 426.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001338/0.2554, allocations: 81.56 kB / 426.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2554, allocations: 11.92 kB / 426.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.2554, allocations: 8.25 kB / 426.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2554, allocations: 4 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-05/0.2554, allocations: 3.938 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2554, allocations: 4 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.05e-05/0.2555, allocations: 11.89 kB / 426.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.2555, allocations: 4 kB / 426.6 MB, free: 11.16 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.0001051/0.2556, allocations: 133.4 kB / 426.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.998e-05/0.2557, allocations: 65.59 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.917e-05/0.2557, allocations: 16.36 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2557, allocations: 8 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.2557, allocations: 0 / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2557, allocations: 0 / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.2559, allocations: 136.7 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2559, allocations: 0 / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.272e-05/0.2559, allocations: 4 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.2559, allocations: 11.92 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.2559, allocations: 0 / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2559, allocations: 0 / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2559, allocations: 0 / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.256, allocations: 105 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.2561, allocations: 19.88 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.2561, allocations: 4 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.703e-05/0.2561, allocations: 4 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.385e-06/0.2561, allocations: 0 / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.2561, allocations: 0 / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.042e-05/0.2562, allocations: 99.45 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2562, allocations: 0 / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000198/0.2564, allocations: 19.94 kB / 427.2 MB, free: 10.47 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.0005096/0.2569, allocations: 0.6553 MB / 427.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.257, allocations: 40.36 kB / 427.9 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.257, allocations: 4.125 kB / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-07/0.257, allocations: 0 / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.2573, allocations: 51.72 kB / 428 MB, free: 9.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.2585, allocations: 1.317 MB / 429.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.2589, allocations: 0.7078 MB / 430 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.039e-05/0.2589, allocations: 7.938 kB / 430 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.092e-05/0.2589, allocations: 15.44 kB / 430 MB, free: 7.496 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2589, allocations: 0 / 430 MB, free: 7.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.2816, allocations: 1.874 MB / 431.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.57, allocations: 8 kB / 431.9 MB, free: 5.758 MB / 334.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_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: 12.991862789960578]