Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001854/0.001854, allocations: 116.5 kB / 20.44 MB, free: 1.469 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.001996/0.001996, allocations: 214.2 kB / 23.74 MB, free: 4.695 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.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 8.016 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002004/0.002004, allocations: 63.89 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2571, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004354/0.2614, allocations: 1.921 MB / 433.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002635/0.2641, allocations: 1.301 MB / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.2642, allocations: 7.938 kB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003415/0.2646, allocations: 71.61 kB / 434.5 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004559/0.265, allocations: 127.5 kB / 434.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007793/0.2658, allocations: 226.7 kB / 434.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003355/0.2661, allocations: 183.5 kB / 435 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.2663, allocations: 25.73 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001853/0.2665, allocations: 79.69 kB / 435.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.2666, allocations: 87.55 kB / 435.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.2667, allocations: 12 kB / 435.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.2669, allocations: 75.94 kB / 435.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.267, allocations: 51.83 kB / 435.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.2671, allocations: 83.41 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.2676, allocations: 239.3 kB / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2676, allocations: 0 / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2676, allocations: 0 / 435.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.2676, allocations: 8 kB / 435.6 MB, free: 2.207 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009184/0.2686, allocations: 470.6 kB / 436.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2686, allocations: 8.031 kB / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.836e-05/0.2687, allocations: 42.73 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.001e-05/0.2687, allocations: 24.8 kB / 436.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.2692, allocations: 237.4 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.2692, allocations: 8.375 kB / 436.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.2693, allocations: 8.375 kB / 436.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.2696, allocations: 155.7 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2696, allocations: 0 / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.2697, allocations: 4 kB / 436.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.2697, allocations: 4 kB / 436.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.2698, allocations: 35.91 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005981/0.2704, allocations: 357.4 kB / 437 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.2706, allocations: 123.8 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.2707, allocations: 42.56 kB / 437.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.2708, allocations: 4.078 kB / 437.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.271, allocations: 87.3 kB / 437.2 MB, free: 444 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.271, allocations: 0 / 437.2 MB, free: 444 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004238/0.2714, allocations: 153.4 kB / 437.4 MB, free: 284 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.2715, allocations: 158.2 kB / 437.5 MB, free: 88 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/0.2719, allocations: 334.1 kB / 437.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.2719, allocations: 29.7 kB / 437.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2721, allocations: 136.1 kB / 438 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.2721, allocations: 11.91 kB / 438 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-05/0.2721, allocations: 33.7 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.2723, allocations: 338.8 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.273e-05/0.2724, allocations: 19.98 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.2725, allocations: 94.73 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.2727, allocations: 84.22 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2727, allocations: 0 / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000253/0.2729, allocations: 133.4 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.273, allocations: 10.66 kB / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.273, allocations: 0 / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.273, allocations: 4 kB / 438.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.2731, allocations: 15.98 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.2731, allocations: 4 kB / 438.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.967e-05/0.2732, allocations: 7.938 kB / 438.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.2732, allocations: 8 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001628/0.2733, allocations: 163.6 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.04e-05/0.2734, allocations: 65.52 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/0.2737, allocations: 131.3 kB / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.2737, allocations: 0 / 439.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.2737, allocations: 4 kB / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2737, allocations: 0 / 439.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.274, allocations: 208.6 kB / 439.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.274, allocations: 4.062 kB / 439.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.399e-05/0.274, allocations: 15.98 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.274, allocations: 0 / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.274, allocations: 4 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.274, allocations: 0 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.274, allocations: 48 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002876/0.2743, allocations: 178.5 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.799e-05/0.2744, allocations: 39.83 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.2745, allocations: 4 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.291e-05/0.2745, allocations: 4 kB / 439.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.2746, allocations: 7.984 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2746, allocations: 7.938 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002671/0.2748, allocations: 253.2 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2748, allocations: 0 / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.2751, allocations: 39.88 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001995/0.2771, allocations: 1.013 MB / 440.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00023/0.2773, allocations: 71.91 kB / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2773, allocations: 0 / 441 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.487e-05/0.2774, allocations: 31.92 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.2778, allocations: 62.2 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.2805, allocations: 2.238 MB / 443.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.2809, allocations: 0.7398 MB / 444 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.376e-05/0.281, allocations: 29.66 kB / 444.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.2811, allocations: 67.41 kB / 444.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2811, allocations: 4 kB / 444.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.3151, allocations: 5.489 MB / 449.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.13, allocations: 0 / 449.6 MB, free: 3.848 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.591046157060191]