Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001361/0.001361, allocations: 110 kB / 20.43 MB, free: 1.453 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.001661/0.001661, allocations: 213.1 kB / 23.74 MB, free: 4.66 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.398/1.398, allocations: 230.5 MB / 257.4 MB, free: 7.996 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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 63.89 kB / 377.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2374, allocations: 53.41 MB / 431.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002853/0.2402, allocations: 1.58 MB / 432.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2413, allocations: 0.5492 MB / 433.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.314e-05/0.2414, allocations: 0 / 433.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.139e-05/0.2414, allocations: 7.875 kB / 433.3 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.2416, allocations: 11.92 kB / 433.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.2419, allocations: 59.83 kB / 433.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.242, allocations: 43.84 kB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.845e-05/0.2421, allocations: 12.17 kB / 433.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.2422, allocations: 35.8 kB / 433.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.138e-05/0.2423, allocations: 19.92 kB / 433.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2423, allocations: 0 / 433.5 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.028e-05/0.2423, allocations: 12 kB / 433.5 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.2424, allocations: 19.91 kB / 433.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.2424, allocations: 23.81 kB / 433.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.2425, allocations: 60.09 kB / 433.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2425, allocations: 4 kB / 433.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2425, allocations: 4 kB / 433.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.2426, allocations: 0 / 433.6 MB, free: 4.395 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004457/0.243, allocations: 301.9 kB / 433.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.243, allocations: 12.03 kB / 433.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.69e-05/0.2431, allocations: 34.75 kB / 434 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.2432, allocations: 16.88 kB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.2434, allocations: 161 kB / 434.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.2434, allocations: 384 / 434.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.2435, allocations: 4.375 kB / 434.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.2437, allocations: 105 kB / 434.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.2437, allocations: 4 kB / 434.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.2437, allocations: 4 kB / 434.2 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2437, allocations: 7.922 kB / 434.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.517e-05/0.2438, allocations: 15.98 kB / 434.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002868/0.2441, allocations: 232.8 kB / 434.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.945e-05/0.2442, allocations: 49.2 kB / 434.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.865e-05/0.2442, allocations: 17.78 kB / 434.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.2443, allocations: 0 / 434.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.2443, allocations: 42.48 kB / 434.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 2.594e-06/0.2443, allocations: 3.984 kB / 434.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002267/0.2445, allocations: 65.8 kB / 434.7 MB, free: 3.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.2446, allocations: 77.11 kB / 434.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.2447, allocations: 145.8 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.2447, allocations: 25.7 kB / 434.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.949e-05/0.2448, allocations: 88.14 kB / 435 MB, free: 2.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.2448, allocations: 7.938 kB / 435 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.241e-05/0.2448, allocations: 17.72 kB / 435 MB, free: 2.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.2449, allocations: 314.8 kB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.202e-05/0.245, allocations: 15.98 kB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.905e-05/0.245, allocations: 17.72 kB / 435.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.544e-05/0.2451, allocations: 29.64 kB / 435.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2451, allocations: 4 kB / 435.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000117/0.2452, allocations: 61.69 kB / 435.5 MB, free: 2.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2452, allocations: 4 kB / 435.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2452, allocations: 0 / 435.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2452, allocations: 0 / 435.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.16e-05/0.2453, allocations: 15.88 kB / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.2453, allocations: 0 / 435.5 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.363e-05/0.2453, allocations: 3.984 kB / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.2454, allocations: 4 kB / 435.5 MB, free: 2.289 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.458e-05/0.2454, allocations: 121.8 kB / 435.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.2455, allocations: 37.66 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.2455, allocations: 15.75 kB / 435.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.2455, allocations: 4 kB / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2455, allocations: 0 / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.2455, allocations: 0 / 435.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/0.2457, allocations: 140.7 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.2457, allocations: 4 kB / 435.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.213e-05/0.2457, allocations: 4 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2457, allocations: 0 / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.2457, allocations: 8.016 kB / 435.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2458, allocations: 7.922 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2458, allocations: 4 kB / 435.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.2459, allocations: 156.3 kB / 436 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.398e-05/0.246, allocations: 19.88 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.246, allocations: 32 / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.435e-05/0.246, allocations: 8 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.093e-05/0.2461, allocations: 7.984 kB / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.2461, allocations: 0 / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.783e-05/0.2461, allocations: 110 kB / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2461, allocations: 0 / 436.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.2464, allocations: 8 kB / 436.1 MB, free: 1.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004239/0.2468, allocations: 0.6936 MB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.2469, allocations: 19.98 kB / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2469, allocations: 0 / 436.8 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.62e-05/0.2469, allocations: 16.08 kB / 436.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.2472, allocations: 22.58 kB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2485, allocations: 1.323 MB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.2488, allocations: 0.6962 MB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.755e-05/0.2489, allocations: 3.984 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.2489, allocations: 19.38 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2489, allocations: 0 / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.2762, allocations: 1.656 MB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.81, allocations: 19.66 kB / 440.6 MB, free: 13.07 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.14848078112118]