Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.001265/0.001265, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001349/0.001349, allocations: 194.4 kB / 23.71 MB, free: 4.406 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.359/1.359, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 55.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2435, allocations: 52.17 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002836/0.2464, allocations: 1.571 MB / 424.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008158/0.2472, allocations: 442.9 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.979e-05/0.2473, allocations: 4 kB / 424.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.451e-05/0.2473, allocations: 7.875 kB / 424.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.2474, allocations: 7.938 kB / 424.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002566/0.2477, allocations: 47.83 kB / 424.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.2478, allocations: 43.84 kB / 424.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.789e-05/0.2479, allocations: 8 kB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.179e-05/0.248, allocations: 31.84 kB / 424.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.248, allocations: 15.92 kB / 424.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.2481, allocations: 7.938 kB / 424.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.299e-05/0.2481, allocations: 4 kB / 424.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.917e-05/0.2481, allocations: 15.98 kB / 424.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.416e-05/0.2481, allocations: 19.81 kB / 424.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.2483, allocations: 57.42 kB / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2483, allocations: 0 / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2483, allocations: 0 / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.2483, allocations: 0 / 424.8 MB, free: 12.11 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.0004781/0.2488, allocations: 302 kB / 425.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.2488, allocations: 8.031 kB / 425.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.652e-05/0.2488, allocations: 38.69 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.2489, allocations: 8.891 kB / 425.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.2491, allocations: 146.3 kB / 425.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2491, allocations: 4.375 kB / 425.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.2491, allocations: 384 / 425.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.2494, allocations: 113.2 kB / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.2494, allocations: 0 / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.2494, allocations: 0 / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2494, allocations: 0 / 425.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.487e-05/0.2495, allocations: 23.92 kB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002962/0.2498, allocations: 236.8 kB / 425.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.509e-05/0.2499, allocations: 49.14 kB / 425.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.596e-05/0.2499, allocations: 13.78 kB / 425.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.2499, allocations: 0 / 425.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.25, allocations: 38.56 kB / 425.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.25, allocations: 0 / 425.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002252/0.2502, allocations: 65.7 kB / 425.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.2503, allocations: 85.05 kB / 425.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.2504, allocations: 144.7 kB / 426.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.2504, allocations: 25.7 kB / 426.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.2505, allocations: 92.14 kB / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.128e-05/0.2505, allocations: 0 / 426.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.2505, allocations: 17.67 kB / 426.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2506, allocations: 322.8 kB / 426.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.889e-05/0.2507, allocations: 8 kB / 426.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.496e-05/0.2507, allocations: 25.86 kB / 426.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.178e-05/0.2508, allocations: 33.58 kB / 426.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2508, allocations: 0 / 426.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001147/0.2509, allocations: 57.61 kB / 426.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2509, allocations: 8 kB / 426.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2509, allocations: 0 / 426.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.2509, allocations: 128 / 426.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.251, allocations: 11.98 kB / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.251, allocations: 0 / 426.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.695e-05/0.251, allocations: 8 kB / 426.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.251, allocations: 0 / 426.7 MB, free: 10.03 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.384e-05/0.2511, allocations: 125.7 kB / 426.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.764e-05/0.2512, allocations: 41.66 kB / 426.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.2512, allocations: 7.812 kB / 426.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.2512, allocations: 0 / 426.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2512, allocations: 3.938 kB / 426.8 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2512, allocations: 8.016 kB / 426.9 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.2514, allocations: 140.7 kB / 427 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2514, allocations: 0 / 427 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.156e-05/0.2514, allocations: 4 kB / 427 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.2514, allocations: 3.984 kB / 427 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.2514, allocations: 4 kB / 427 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2514, allocations: 0 / 427 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2514, allocations: 0 / 427 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.2516, allocations: 160.3 kB / 427.2 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.2516, allocations: 11.94 kB / 427.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.2517, allocations: 8.031 kB / 427.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.681e-05/0.2517, allocations: 4 kB / 427.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.2518, allocations: 7.922 kB / 427.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.2518, allocations: 4 kB / 427.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.875e-05/0.2518, allocations: 103.3 kB / 427.3 MB, free: 9.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2518, allocations: 0 / 427.3 MB, free: 9.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000212/0.2521, allocations: 4 kB / 427.3 MB, free: 9.32 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.0004616/0.2525, allocations: 0.6976 MB / 428 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.2526, allocations: 23.92 kB / 428 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2526, allocations: 4 kB / 428 MB, free: 8.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.562e-05/0.2527, allocations: 7.984 kB / 428 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.253, allocations: 19.95 kB / 428.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.2543, allocations: 1.322 MB / 429.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.274e-05/0.2543, allocations: 79.19 kB / 429.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.851e-05/0.2544, allocations: 4 kB / 429.5 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.027e-05/0.2544, allocations: 15.42 kB / 429.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2544, allocations: 0 / 429.5 MB, free: 7.012 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02499/0.2794, allocations: 2.087 MB / 431.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.69, allocations: 0 / 431.6 MB, free: 5.066 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 12.944693710189313]