Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 112.2 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002154/0.002154, allocations: 212.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 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.378/1.378, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 39.94 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2387, allocations: 53.36 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002076/0.2408, allocations: 0.8891 MB / 432.8 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003188/0.2411, allocations: 111.5 kB / 432.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.2412, allocations: 4 kB / 432.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.936e-05/0.2412, allocations: 3.938 kB / 432.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.2413, allocations: 11.92 kB / 432.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.2415, allocations: 35.91 kB / 433 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.555e-05/0.2416, allocations: 43.91 kB / 433 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.884e-05/0.2417, allocations: 15.98 kB / 433 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.2418, allocations: 19.88 kB / 433 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.239e-05/0.2418, allocations: 15.92 kB / 433.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.2418, allocations: 4 kB / 433.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.2418, allocations: 4 kB / 433.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.681e-05/0.2419, allocations: 19.91 kB / 433.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.527e-05/0.2419, allocations: 23.81 kB / 433.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.242, allocations: 59.47 kB / 433.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.242, allocations: 4 kB / 433.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.242, allocations: 0 / 433.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.242, allocations: 0 / 433.2 MB, free: 5.625 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.0003544/0.2424, allocations: 295 kB / 433.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.2424, allocations: 8.031 kB / 433.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.315e-05/0.2424, allocations: 4.188 kB / 433.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.361e-05/0.2425, allocations: 38.73 kB / 433.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.2425, allocations: 8.891 kB / 433.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.2427, allocations: 141.3 kB / 433.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.2427, allocations: 4.312 kB / 433.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.2427, allocations: 8.375 kB / 433.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.243, allocations: 139.5 kB / 433.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.243, allocations: 0 / 433.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.243, allocations: 0 / 433.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.243, allocations: 4 kB / 433.8 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.915e-05/0.243, allocations: 16 kB / 433.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.2432, allocations: 136.7 kB / 434 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.2433, allocations: 66.69 kB / 434 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.825e-05/0.2434, allocations: 36.83 kB / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.2434, allocations: 0 / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.2434, allocations: 42.5 kB / 434.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.2434, allocations: 0 / 434.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001781/0.2436, allocations: 89.56 kB / 434.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.2436, allocations: 63.34 kB / 434.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.2437, allocations: 133.8 kB / 434.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.2438, allocations: 25.7 kB / 434.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.243e-05/0.2438, allocations: 84.14 kB / 434.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.2438, allocations: 11.94 kB / 434.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.2439, allocations: 29.72 kB / 434.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.244, allocations: 314.8 kB / 434.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.046e-05/0.244, allocations: 8 kB / 434.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.914e-05/0.2441, allocations: 62.8 kB / 434.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.71e-05/0.2441, allocations: 66.81 kB / 435 MB, free: 3.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2441, allocations: 4 kB / 435 MB, free: 3.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001288/0.2443, allocations: 93.44 kB / 435.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.2443, allocations: 11.94 kB / 435.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2443, allocations: 0 / 435.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.2443, allocations: 4 kB / 435.1 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-05/0.2443, allocations: 7.938 kB / 435.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2443, allocations: 256 / 435.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.194e-05/0.2444, allocations: 11.94 kB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.2444, allocations: 4 kB / 435.1 MB, free: 3.449 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 9.496e-05/0.2445, allocations: 129.8 kB / 435.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.73e-05/0.2445, allocations: 73.53 kB / 435.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.2446, allocations: 16.36 kB / 435.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.2446, allocations: 0 / 435.3 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.2446, allocations: 4 kB / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2446, allocations: 0 / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.2447, allocations: 144.7 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2447, allocations: 0 / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.139e-05/0.2447, allocations: 3.984 kB / 435.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2447, allocations: 7.922 kB / 435.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.269e-06/0.2447, allocations: 0 / 435.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2447, allocations: 0 / 435.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2447, allocations: 4 kB / 435.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001158/0.2448, allocations: 101 kB / 435.6 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.2449, allocations: 19.88 kB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.2449, allocations: 8 kB / 435.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.356e-05/0.2449, allocations: 0 / 435.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.914e-06/0.2449, allocations: 192 / 435.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.2449, allocations: 4 kB / 435.6 MB, free: 2.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.599e-05/0.245, allocations: 106.4 kB / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.245, allocations: 0 / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001945/0.2452, allocations: 8 kB / 435.7 MB, free: 2.754 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.0004625/0.2456, allocations: 0.6631 MB / 436.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.2458, allocations: 47.84 kB / 436.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.2458, allocations: 0 / 436.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.71e-07/0.2458, allocations: 0 / 436.4 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.246, allocations: 48.38 kB / 436.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.2471, allocations: 1.328 MB / 437.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.2474, allocations: 0.6924 MB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.537e-05/0.2475, allocations: 3.953 kB / 438.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.2475, allocations: 19.42 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2475, allocations: 4 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.2689, allocations: 1.884 MB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.56, allocations: 2.578 kB / 440.4 MB, free: 14.03 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.956160641973838]