Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001218/0.001218, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001287/0.001287, allocations: 196.8 kB / 24.5 MB, free: 4.008 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.345/1.345, 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.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 51.92 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2581, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.0022/0.2603, allocations: 0.8767 MB / 424.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003564/0.2607, allocations: 111.7 kB / 424.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.534e-05/0.2608, allocations: 3.938 kB / 424.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.2609, allocations: 15.92 kB / 424.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.261, allocations: 3.938 kB / 424.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.2612, allocations: 46.77 kB / 424.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.2613, allocations: 35.92 kB / 424.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.2615, allocations: 23.97 kB / 424.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.508e-05/0.2615, allocations: 19.86 kB / 424.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.179e-05/0.2616, allocations: 19.92 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.2616, allocations: 4 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.298e-05/0.2616, allocations: 4 kB / 424.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.97e-05/0.2617, allocations: 15.92 kB / 424.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.706e-05/0.2617, allocations: 27.75 kB / 424.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.2618, allocations: 64.52 kB / 424.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.2618, allocations: 4 kB / 424.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.2618, allocations: 4 kB / 424.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2618, allocations: 0 / 424.7 MB, free: 13.34 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.0004976/0.2623, allocations: 302 kB / 425 MB, free: 13.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.2624, allocations: 16.02 kB / 425 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.535e-05/0.2624, allocations: 192 / 425 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.2624, allocations: 34.75 kB / 425 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.2625, allocations: 8.891 kB / 425 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.2627, allocations: 146.3 kB / 425.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.2627, allocations: 4.375 kB / 425.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.2627, allocations: 4.375 kB / 425.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.263, allocations: 155.5 kB / 425.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.2631, allocations: 0 / 425.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.2631, allocations: 0 / 425.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.2631, allocations: 7.938 kB / 425.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.233e-05/0.2631, allocations: 23.92 kB / 425.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.2633, allocations: 152.7 kB / 425.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.2635, allocations: 70.7 kB / 425.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.2635, allocations: 36.88 kB / 425.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.249e-05/0.2635, allocations: 4 kB / 425.6 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.2636, allocations: 50.42 kB / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.2636, allocations: 0 / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002101/0.2638, allocations: 93.78 kB / 425.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/0.2639, allocations: 63.39 kB / 425.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.264, allocations: 133.8 kB / 426 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.264, allocations: 25.7 kB / 426 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6e-05/0.2641, allocations: 92.12 kB / 426.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.2641, allocations: 4 kB / 426.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.201e-05/0.2641, allocations: 29.67 kB / 426.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.2643, allocations: 318.8 kB / 426.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.2643, allocations: 15.94 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.722e-05/0.2644, allocations: 58.8 kB / 426.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.126e-05/0.2645, allocations: 78.73 kB / 426.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2645, allocations: 4 kB / 426.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001449/0.2646, allocations: 93.45 kB / 426.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2646, allocations: 4 kB / 426.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2646, allocations: 4 kB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2647, allocations: 0 / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.094e-05/0.2647, allocations: 23.92 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2647, allocations: 256 / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.732e-05/0.2648, allocations: 11.94 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2648, allocations: 4 kB / 426.7 MB, free: 11.05 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 (sum.y,sum.u[2],sum.u[1],const.y,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.2649, allocations: 129.8 kB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.265, allocations: 81.58 kB / 426.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.2651, allocations: 12.72 kB / 426.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2651, allocations: 4 kB / 426.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2651, allocations: 0 / 426.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.2651, allocations: 3.984 kB / 426.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.2652, allocations: 140.7 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2652, allocations: 4 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.792e-05/0.2653, allocations: 16.11 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.2653, allocations: 4 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.2653, allocations: 3.938 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2653, allocations: 0 / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2653, allocations: 0 / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.2654, allocations: 113 kB / 427.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.2655, allocations: 27.83 kB / 427.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.2655, allocations: 3.984 kB / 427.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.47e-05/0.2655, allocations: 8 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-06/0.2655, allocations: 0 / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.2655, allocations: 4 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.585e-05/0.2656, allocations: 104.7 kB / 427.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2656, allocations: 0 / 427.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000193/0.2658, allocations: 11.94 kB / 427.4 MB, free: 10.32 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,const.y,sum.u[1],sum.u[2],sum.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.000516/0.2663, allocations: 0.6898 MB / 428.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.2664, allocations: 43.92 kB / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2664, allocations: 0 / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.2664, allocations: 0 / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.2667, allocations: 43.61 kB / 428.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.2679, allocations: 1.376 MB / 429.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.2683, allocations: 0.7002 MB / 430.2 MB, free: 7.293 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.698e-05/0.2683, allocations: 4.672 kB / 430.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.2684, allocations: 23.42 kB / 430.3 MB, free: 7.262 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2684, allocations: 0 / 430.3 MB, free: 7.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.2896, allocations: 1.989 MB / 432.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.69, allocations: 4.062 kB / 432.2 MB, free: 5.414 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79641e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,const.k,const.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(unitDelay1.u),sum.k[1],sum.k[2],sum.nu,sum.u[1],sum.u[2],sum.y,time,unitDelay1.u,unitDelay1.y,unitDelay1.y_start [Calling sys.exit(0), Time elapsed: 13.034712333988864]