Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.00172/0.00172, allocations: 105.1 kB / 21.22 MB, free: 0.6211 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.002086/0.002086, allocations: 209.9 kB / 24.52 MB, free: 3.91 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.531/1.531, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.84 kB / 378.5 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3448, allocations: 53.41 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002871/0.3477, allocations: 1.44 MB / 433.3 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001958/0.3479, allocations: 35.84 kB / 433.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.348, allocations: 0 / 433.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.294e-05/0.348, allocations: 3.938 kB / 433.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.351e-05/0.348, allocations: 3.938 kB / 433.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002548/0.3483, allocations: 19.98 kB / 433.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.947e-05/0.3484, allocations: 39.84 kB / 433.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.3485, allocations: 11.98 kB / 433.5 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.734e-05/0.3485, allocations: 8 kB / 433.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.557e-05/0.3486, allocations: 15.92 kB / 433.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.3486, allocations: 0 / 433.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.047e-05/0.3486, allocations: 4 kB / 433.5 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.3486, allocations: 7.938 kB / 433.5 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.472e-05/0.3487, allocations: 11.92 kB / 433.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.758e-05/0.3488, allocations: 33.02 kB / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3488, allocations: 0 / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3488, allocations: 0 / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.3488, allocations: 4 kB / 433.5 MB, free: 4.828 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004314/0.3492, allocations: 270 kB / 433.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.925e-05/0.3493, allocations: 12.03 kB / 433.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.364e-05/0.3493, allocations: 192 / 433.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.3493, allocations: 30.75 kB / 433.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.605e-05/0.3493, allocations: 8.891 kB / 433.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.3496, allocations: 122.4 kB / 434 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.3496, allocations: 8.312 kB / 434 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/0.3496, allocations: 4.359 kB / 434 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.35, allocations: 127.6 kB / 434.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.35, allocations: 0 / 434.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.35, allocations: 0 / 434.1 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.35, allocations: 3.984 kB / 434.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.3501, allocations: 23.98 kB / 434.1 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.3502, allocations: 132.7 kB / 434.3 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000171/0.3504, allocations: 58.48 kB / 434.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.012e-05/0.3505, allocations: 24.92 kB / 434.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.945e-06/0.3505, allocations: 0 / 434.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3505, allocations: 42.5 kB / 434.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.3505, allocations: 0 / 434.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002887/0.3508, allocations: 77.61 kB / 434.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3509, allocations: 63.34 kB / 434.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.894e-05/0.351, allocations: 105.8 kB / 434.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.351, allocations: 25.7 kB / 434.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.351, allocations: 84.14 kB / 434.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.3511, allocations: 7.984 kB / 434.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3511, allocations: 17.72 kB / 434.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.3512, allocations: 310.8 kB / 435.1 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.731e-05/0.3512, allocations: 7.984 kB / 435.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.877e-05/0.3513, allocations: 31.44 kB / 435.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.408e-05/0.3513, allocations: 39.38 kB / 435.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3513, allocations: 0 / 435.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.654e-05/0.3514, allocations: 61.58 kB / 435.2 MB, free: 2.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3514, allocations: 11.94 kB / 435.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3515, allocations: 4.125 kB / 435.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3515, allocations: 0 / 435.2 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.485e-05/0.3515, allocations: 11.94 kB / 435.2 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3515, allocations: 11.97 kB / 435.2 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.075e-05/0.3516, allocations: 3.938 kB / 435.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-06/0.3516, allocations: 0 / 435.2 MB, free: 2.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.685e-05/0.3517, allocations: 113.8 kB / 435.4 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.3518, allocations: 69.56 kB / 435.4 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.3518, allocations: 8 kB / 435.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.3518, allocations: 0 / 435.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3518, allocations: 4 kB / 435.4 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3518, allocations: 4.234 kB / 435.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.352, allocations: 124.8 kB / 435.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.352, allocations: 0 / 435.6 MB, free: 2.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.352, allocations: 15.92 kB / 435.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.352, allocations: 7.922 kB / 435.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.3521, allocations: 0 / 435.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3521, allocations: 384 / 435.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3521, allocations: 3.938 kB / 435.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.3522, allocations: 89.11 kB / 435.7 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.082e-05/0.3523, allocations: 11.88 kB / 435.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.3523, allocations: 8 kB / 435.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.444e-05/0.3523, allocations: 8 kB / 435.7 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-06/0.3523, allocations: 0 / 435.7 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.3523, allocations: 0 / 435.7 MB, free: 2.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.643e-05/0.3524, allocations: 87.27 kB / 435.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3524, allocations: 0 / 435.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001871/0.3525, allocations: 8 kB / 435.8 MB, free: 2.262 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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.000625/0.3532, allocations: 0.6397 MB / 436.4 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.3533, allocations: 36.16 kB / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3533, allocations: 4 kB / 436.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.3533, allocations: 0 / 436.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.3536, allocations: 26.64 kB / 436.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.3547, allocations: 1.189 MB / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.082e-05/0.3548, allocations: 63.34 kB / 437.8 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.479e-05/0.3548, allocations: 0 / 437.8 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/0.3548, allocations: 23.48 kB / 437.8 MB, free: 140 kB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3548, allocations: 0 / 437.8 MB, free: 140 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.3777, allocations: 1.55 MB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.05, allocations: 8 kB / 439.3 MB, free: 14.71 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time [Calling sys.exit(0), Time elapsed: 13.757710514008068]