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.001182/0.001182, allocations: 103.9 kB / 21.21 MB, free: 0.6523 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.001232/0.001232, allocations: 188.9 kB / 24.49 MB, free: 3.957 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.314/1.314, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 44.06 kB / 371.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2175, allocations: 52.19 MB / 423.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002729/0.2203, allocations: 1.548 MB / 424.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007589/0.221, allocations: 438.9 kB / 425.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.93e-05/0.2211, allocations: 7.938 kB / 425.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.969e-05/0.2211, allocations: 3.938 kB / 425.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.2212, allocations: 15.92 kB / 425.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.2215, allocations: 47.77 kB / 425.4 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.2216, allocations: 43.8 kB / 425.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.121e-05/0.2217, allocations: 22.08 kB / 425.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.153e-05/0.2217, allocations: 19.94 kB / 425.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.869e-05/0.2218, allocations: 15.92 kB / 425.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.2218, allocations: 4 kB / 425.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.2218, allocations: 11.94 kB / 425.5 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.032e-05/0.2218, allocations: 11.98 kB / 425.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.2219, allocations: 19.81 kB / 425.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.222, allocations: 59.67 kB / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.222, allocations: 0 / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.222, allocations: 0 / 425.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.222, allocations: 0 / 425.6 MB, free: 12.27 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.000422/0.2224, allocations: 302 kB / 425.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2224, allocations: 8.031 kB / 425.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.536e-05/0.2225, allocations: 4.172 kB / 425.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.173e-05/0.2225, allocations: 38.75 kB / 425.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.2225, allocations: 12.89 kB / 426 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.2227, allocations: 138.4 kB / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.2227, allocations: 384 / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.2227, allocations: 4.375 kB / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.223, allocations: 112.9 kB / 426.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.223, allocations: 7.938 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.223, allocations: 8 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.426e-06/0.223, allocations: 0 / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.765e-05/0.2231, allocations: 15.98 kB / 426.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002915/0.2234, allocations: 232.8 kB / 426.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.566e-05/0.2234, allocations: 49.14 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.999e-05/0.2235, allocations: 21.77 kB / 426.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.2235, allocations: 0 / 426.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2235, allocations: 30.56 kB / 426.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 2.895e-06/0.2235, allocations: 4 kB / 426.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002199/0.2238, allocations: 69.61 kB / 426.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.2238, allocations: 81.05 kB / 426.7 MB, free: 10.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2239, allocations: 144.7 kB / 426.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.224, allocations: 25.7 kB / 426.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.136e-05/0.224, allocations: 88.12 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.224, allocations: 4 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.2241, allocations: 17.67 kB / 427 MB, free: 10.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.2242, allocations: 323 kB / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.119e-05/0.2242, allocations: 11.98 kB / 427.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.513e-05/0.2243, allocations: 17.72 kB / 427.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.468e-05/0.2244, allocations: 29.64 kB / 427.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.2244, allocations: 0 / 427.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001149/0.2245, allocations: 61.61 kB / 427.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2245, allocations: 4.125 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2245, allocations: 4 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.2245, allocations: 0 / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.299e-05/0.2246, allocations: 4 kB / 427.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.2246, allocations: 7.984 kB / 427.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.473e-05/0.2246, allocations: 3.984 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.2246, allocations: 0 / 427.5 MB, free: 10.18 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 9.431e-05/0.2247, allocations: 129.7 kB / 427.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.2248, allocations: 41.64 kB / 427.6 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.2248, allocations: 11.8 kB / 427.6 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.2248, allocations: 4.031 kB / 427.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2248, allocations: 4 kB / 427.6 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2248, allocations: 0 / 427.6 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001604/0.225, allocations: 136.7 kB / 427.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.225, allocations: 3.984 kB / 427.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.225, allocations: 8 kB / 427.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.225, allocations: 0 / 427.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.225, allocations: 0 / 427.8 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.225, allocations: 3.938 kB / 427.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.225, allocations: 0 / 427.8 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.2252, allocations: 172.2 kB / 428 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.218e-05/0.2253, allocations: 11.95 kB / 428 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.2253, allocations: 3.984 kB / 428 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.714e-05/0.2253, allocations: 8 kB / 428 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.2254, allocations: 4 kB / 428 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.2254, allocations: 0 / 428 MB, free: 9.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.558e-05/0.2254, allocations: 107.2 kB / 428.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2254, allocations: 0 / 428.1 MB, free: 9.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.2256, allocations: 8 kB / 428.1 MB, free: 9.461 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.0004662/0.2261, allocations: 0.6976 MB / 428.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.2262, allocations: 19.98 kB / 428.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2262, allocations: 0 / 428.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.275e-05/0.2263, allocations: 4 kB / 428.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.2266, allocations: 27.33 kB / 428.8 MB, free: 8.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.2278, allocations: 1.322 MB / 430.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.538e-05/0.2279, allocations: 75.19 kB / 430.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.522e-05/0.2279, allocations: 0 / 430.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.228, allocations: 19.44 kB / 430.3 MB, free: 7.16 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.228, allocations: 0 / 430.3 MB, free: 7.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.2489, allocations: 1.737 MB / 432 MB, free: 5.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.9, allocations: 4.062 kB / 432 MB, free: 5.578 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] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,time [Calling sys.exit(0), Time elapsed: 13.172558138961904]