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.00129/0.00129, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001532/0.001532, allocations: 213.8 kB / 23.73 MB, free: 4.41 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.412/1.412, allocations: 230.6 MB / 257.5 MB, free: 7.75 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 48.02 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2409, allocations: 53.37 MB / 431.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.002508/0.2434, allocations: 0.8699 MB / 432 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003782/0.2438, allocations: 111.6 kB / 432.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.661e-05/0.2439, allocations: 3.938 kB / 432.1 MB, free: 5.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.466e-05/0.2439, allocations: 7.922 kB / 432.1 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.2441, allocations: 11.92 kB / 432.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.2443, allocations: 35.91 kB / 432.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.2444, allocations: 39.86 kB / 432.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.2445, allocations: 27.77 kB / 432.2 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.155e-05/0.2446, allocations: 15.92 kB / 432.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.497e-05/0.2446, allocations: 19.86 kB / 432.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.2446, allocations: 4 kB / 432.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.272e-05/0.2446, allocations: 4 kB / 432.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.227e-05/0.2447, allocations: 11.94 kB / 432.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.657e-05/0.2447, allocations: 19.86 kB / 432.3 MB, free: 5.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.2448, allocations: 49.62 kB / 432.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2449, allocations: 3.938 kB / 432.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2449, allocations: 0 / 432.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2449, allocations: 4 kB / 432.3 MB, free: 5.539 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.0004187/0.2453, allocations: 301.9 kB / 432.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.2453, allocations: 12.03 kB / 432.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.292e-05/0.2454, allocations: 34.75 kB / 432.7 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.187e-05/0.2454, allocations: 8.891 kB / 432.7 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2456, allocations: 130.4 kB / 432.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.2457, allocations: 4.375 kB / 432.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.2457, allocations: 4.375 kB / 432.8 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002912/0.246, allocations: 135.8 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.246, allocations: 3.938 kB / 432.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.246, allocations: 4 kB / 432.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.246, allocations: 0 / 432.9 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.154e-05/0.246, allocations: 23.97 kB / 433 MB, free: 4.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.2462, allocations: 136.7 kB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.2464, allocations: 62.64 kB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.198e-05/0.2464, allocations: 36.89 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.2464, allocations: 8 kB / 433.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.2465, allocations: 30.56 kB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.133e-06/0.2465, allocations: 0 / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001941/0.2467, allocations: 85.58 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.2467, allocations: 59.34 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.2469, allocations: 136.2 kB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.2469, allocations: 33.7 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.2469, allocations: 80.14 kB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.247, allocations: 7.953 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.247, allocations: 29.7 kB / 433.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2472, allocations: 318.8 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.063e-05/0.2472, allocations: 11.98 kB / 434 MB, free: 3.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.98e-05/0.2472, allocations: 58.88 kB / 434 MB, free: 3.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001053/0.2474, allocations: 74.73 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2474, allocations: 4 kB / 434.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000135/0.2475, allocations: 89.45 kB / 434.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2475, allocations: 7.938 kB / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2475, allocations: 4 kB / 434.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2475, allocations: 4.188 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.694e-05/0.2475, allocations: 0 / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2476, allocations: 11.92 kB / 434.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.07e-05/0.2476, allocations: 12.19 kB / 434.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.2476, allocations: 8 kB / 434.2 MB, free: 3.359 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.0001077/0.2477, allocations: 121.8 kB / 434.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.881e-05/0.2478, allocations: 77.56 kB / 434.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.6e-05/0.2478, allocations: 8.375 kB / 434.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2478, allocations: 4 kB / 434.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.2479, allocations: 0 / 434.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2479, allocations: 0 / 434.5 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.248, allocations: 136.7 kB / 434.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.248, allocations: 0 / 434.6 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.555e-05/0.248, allocations: 7.938 kB / 434.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.248, allocations: 11.88 kB / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.248, allocations: 0 / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.248, allocations: 0 / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.248, allocations: 0 / 434.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.2481, allocations: 97.08 kB / 434.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.2482, allocations: 19.94 kB / 434.7 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.2482, allocations: 7.922 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.52e-05/0.2482, allocations: 0 / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-06/0.2482, allocations: 0 / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.2482, allocations: 7.984 kB / 434.7 MB, free: 2.789 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.529e-05/0.2483, allocations: 102.4 kB / 434.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2483, allocations: 4 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002131/0.2485, allocations: 12 kB / 434.9 MB, free: 2.676 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.0005451/0.2491, allocations: 0.6631 MB / 435.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.2492, allocations: 43.92 kB / 435.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2492, allocations: 0 / 435.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.756e-06/0.2492, allocations: 4.5 kB / 435.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.2495, allocations: 43.73 kB / 435.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.2508, allocations: 1.321 MB / 436.9 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.405e-05/0.2509, allocations: 75.33 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.284e-05/0.2509, allocations: 11.94 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.2509, allocations: 15.44 kB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2509, allocations: 0 / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03022/0.2812, allocations: 2.258 MB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.84, allocations: 10.94 kB / 439.3 MB, free: 14.2 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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.214395549148321]