Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.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.001306/0.001306, allocations: 108.6 kB / 21.22 MB, free: 0.7422 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.001541/0.001541, allocations: 187.7 kB / 24.5 MB, free: 4.152 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.47/1.47, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 47.92 kB / 371.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2981, allocations: 52.17 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample): time 0.00339/0.3015, allocations: 1.591 MB / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009428/0.3025, allocations: 0.4948 MB / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.813e-05/0.3026, allocations: 0 / 425.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.366e-05/0.3026, allocations: 11.86 kB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.3028, allocations: 7.938 kB / 425.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002903/0.3031, allocations: 51.45 kB / 425.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.3032, allocations: 51.78 kB / 425.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3033, allocations: 12 kB / 425.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.3034, allocations: 23.91 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.3034, allocations: 19.86 kB / 425.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.3035, allocations: 7.938 kB / 425.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.29e-05/0.3035, allocations: 4 kB / 425.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.3035, allocations: 15.98 kB / 425.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.3036, allocations: 23.81 kB / 425.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.3037, allocations: 55.12 kB / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.3037, allocations: 3.984 kB / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3037, allocations: 0 / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3037, allocations: 4 kB / 425.8 MB, free: 12.23 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.0005109/0.3042, allocations: 299 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3043, allocations: 12.03 kB / 426.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.459e-05/0.3043, allocations: 192 / 426.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.3043, allocations: 34.69 kB / 426.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.743e-05/0.3044, allocations: 8.891 kB / 426.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.3046, allocations: 150.3 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.76e-06/0.3046, allocations: 4.375 kB / 426.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.3046, allocations: 8.375 kB / 426.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3049, allocations: 105 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.3049, allocations: 0 / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.3049, allocations: 0 / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.305, allocations: 11.94 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.524e-05/0.305, allocations: 19.98 kB / 426.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002941/0.3053, allocations: 236.7 kB / 426.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.503e-05/0.3054, allocations: 37.2 kB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.237e-05/0.3055, allocations: 29.77 kB / 426.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3055, allocations: 0 / 426.7 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/0.3055, allocations: 34.5 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.3055, allocations: 0 / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002386/0.3058, allocations: 69.61 kB / 426.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.3058, allocations: 81.36 kB / 426.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.3059, allocations: 140.7 kB / 427 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.306, allocations: 25.7 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.468e-05/0.306, allocations: 92.12 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.306, allocations: 0 / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.3061, allocations: 21.67 kB / 427.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3062, allocations: 314.8 kB / 427.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.682e-05/0.3063, allocations: 19.98 kB / 427.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-05/0.3063, allocations: 13.72 kB / 427.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.845e-05/0.3064, allocations: 33.64 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3064, allocations: 0 / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001257/0.3065, allocations: 61.72 kB / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.3065, allocations: 4 kB / 427.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.3065, allocations: 7.938 kB / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.3065, allocations: 0 / 427.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.044e-05/0.3066, allocations: 7.938 kB / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3066, allocations: 0 / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.649e-05/0.3066, allocations: 7.984 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.3066, allocations: 0 / 427.6 MB, free: 10.14 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.128e-05/0.3067, allocations: 121.7 kB / 427.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.3068, allocations: 41.72 kB / 427.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.248e-05/0.3068, allocations: 15.8 kB / 427.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3068, allocations: 0 / 427.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3068, allocations: 0 / 427.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3068, allocations: 0 / 427.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.307, allocations: 144.7 kB / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.307, allocations: 0 / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/0.3071, allocations: 4 kB / 427.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.3071, allocations: 0 / 427.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.3071, allocations: 3.984 kB / 427.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3071, allocations: 8.031 kB / 427.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3071, allocations: 3.938 kB / 428 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001703/0.3072, allocations: 152.3 kB / 428.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.3073, allocations: 23.88 kB / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.3073, allocations: 0 / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.132e-05/0.3074, allocations: 32 / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.538e-05/0.3074, allocations: 15.98 kB / 428.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.3074, allocations: 0 / 428.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.521e-05/0.3075, allocations: 103.3 kB / 428.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3075, allocations: 0 / 428.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.3077, allocations: 8 kB / 428.2 MB, free: 9.434 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.0004802/0.3082, allocations: 0.6976 MB / 428.9 MB, free: 8.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001244/0.3083, allocations: 15.98 kB / 429 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3083, allocations: 0 / 429 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.363e-05/0.3083, allocations: 19.92 kB / 429 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.3087, allocations: 19.52 kB / 429 MB, free: 8.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.31, allocations: 1.323 MB / 430.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.3103, allocations: 0.6922 MB / 431 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.448e-05/0.3104, allocations: 4.031 kB / 431 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.213e-05/0.3104, allocations: 23.36 kB / 431 MB, free: 6.496 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3104, allocations: 0 / 431 MB, free: 6.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.3325, allocations: 1.656 MB / 432.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.03, allocations: 4.062 kB / 432.7 MB, free: 4.984 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample_fmu --startTime=0 --stopTime=0.08 --stepSize=1.59331e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.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,superSample1.factor,time [Calling sys.exit(0), Time elapsed: 13.609463709988631]