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.001373/0.001373, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001485/0.001485, allocations: 214.9 kB / 23.73 MB, free: 4.16 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.387/1.387, allocations: 230.5 MB / 257.4 MB, free: 7.797 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.001911/0.001911, allocations: 67.89 kB / 377.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2324, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003763/0.2361, allocations: 1.867 MB / 433 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.2386, allocations: 1.211 MB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.2388, allocations: 0 / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.2392, allocations: 79.59 kB / 434.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004622/0.2396, allocations: 127.5 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007309/0.2404, allocations: 226.4 kB / 434.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.2407, allocations: 183.5 kB / 434.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.2408, allocations: 25.73 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.2409, allocations: 75.69 kB / 434.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.241, allocations: 87.55 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.2411, allocations: 8 kB / 435 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.2413, allocations: 75.94 kB / 435.1 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.576e-05/0.2414, allocations: 47.83 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.572e-05/0.2414, allocations: 55.61 kB / 435.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004153/0.2419, allocations: 252.6 kB / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2419, allocations: 0 / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.2419, allocations: 0 / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2419, allocations: 0 / 435.4 MB, free: 2.129 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.0008312/0.2427, allocations: 478.5 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.2427, allocations: 19.92 kB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.2428, allocations: 42.67 kB / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.2429, allocations: 24.8 kB / 436 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.2434, allocations: 225.5 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.2434, allocations: 8.375 kB / 436.2 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.2434, allocations: 8.312 kB / 436.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.2438, allocations: 180.5 kB / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.2438, allocations: 0 / 436.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.2438, allocations: 8 kB / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2438, allocations: 0 / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.2439, allocations: 39.91 kB / 436.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005361/0.2445, allocations: 341.5 kB / 436.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.2447, allocations: 119.9 kB / 436.9 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.141e-05/0.2448, allocations: 46.56 kB / 436.9 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.2448, allocations: 0 / 436.9 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.245, allocations: 83.31 kB / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.245, allocations: 0 / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004103/0.2454, allocations: 157.4 kB / 437.2 MB, free: 184 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.2455, allocations: 132.5 kB / 437.3 MB, free: 20 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000384/0.2459, allocations: 338.1 kB / 437.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.2459, allocations: 37.69 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.991e-05/0.246, allocations: 128.2 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.246, allocations: 19.89 kB / 437.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.2461, allocations: 33.7 kB / 437.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2462, allocations: 334.8 kB / 438.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.912e-05/0.2463, allocations: 27.98 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2465, allocations: 133.3 kB / 438.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.2466, allocations: 92.5 kB / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2466, allocations: 0 / 438.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002594/0.2469, allocations: 129.4 kB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2469, allocations: 7.938 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2469, allocations: 4 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.2469, allocations: 3.984 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.247, allocations: 16 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.247, allocations: 0 / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.922e-05/0.2471, allocations: 12.11 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.2471, allocations: 8 kB / 438.6 MB, free: 14.64 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.0001452/0.2473, allocations: 159.1 kB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-05/0.2474, allocations: 69.5 kB / 438.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.2476, allocations: 127.3 kB / 438.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2476, allocations: 4 kB / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2477, allocations: 3.984 kB / 439 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2477, allocations: 3.938 kB / 439 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.2479, allocations: 212.7 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2479, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-05/0.248, allocations: 19.98 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.248, allocations: 0 / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.248, allocations: 4 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.248, allocations: 0 / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.248, allocations: 0 / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.2483, allocations: 174.5 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.995e-05/0.2484, allocations: 35.84 kB / 439.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.2484, allocations: 12.05 kB / 439.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.953e-05/0.2485, allocations: 8 kB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.2485, allocations: 15.92 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2485, allocations: 4 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002714/0.2488, allocations: 249.2 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2488, allocations: 0 / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002636/0.2491, allocations: 35.88 kB / 439.7 MB, free: 13.43 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 (10): * Single equations (assignments): 8 * 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.002157/0.2512, allocations: 1.048 MB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002466/0.2515, allocations: 87.83 kB / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2515, allocations: 0 / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.917e-05/0.2516, allocations: 27.92 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.252, allocations: 64.38 kB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.2547, allocations: 2.242 MB / 443.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.2548, allocations: 136.3 kB / 443.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.184e-05/0.2549, allocations: 25.47 kB / 443.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.255, allocations: 63.41 kB / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.255, allocations: 0 / 443.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.2882, allocations: 6.06 MB / 449.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.35, allocations: 64 / 449.5 MB, free: 3.715 MB / 350.1 MB " [Timeout remaining time 648] (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.715033472049981]