Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.00145/0.00145, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001653/0.001653, allocations: 214.8 kB / 24.52 MB, free: 3.91 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.518/1.518, allocations: 230.5 MB / 258.2 MB, free: 7.777 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.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 55.91 kB / 378.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3126, allocations: 53.4 MB / 431.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.00325/0.3159, allocations: 1.572 MB / 433.5 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.3169, allocations: 0.4986 MB / 434 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.18e-05/0.317, allocations: 0 / 434 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.265e-05/0.3171, allocations: 7.922 kB / 434 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.3172, allocations: 15.86 kB / 434 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.3175, allocations: 47.83 kB / 434.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.3176, allocations: 39.91 kB / 434.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.783e-05/0.3177, allocations: 8 kB / 434.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.3179, allocations: 35.84 kB / 434.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.4e-05/0.3179, allocations: 23.86 kB / 434.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.3179, allocations: 4 kB / 434.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.309e-05/0.318, allocations: 4 kB / 434.2 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.318, allocations: 11.94 kB / 434.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.318, allocations: 15.86 kB / 434.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.3182, allocations: 57.86 kB / 434.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3182, allocations: 0 / 434.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3182, allocations: 0 / 434.3 MB, free: 4.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.3182, allocations: 0 / 434.3 MB, free: 4.094 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000495/0.3187, allocations: 298 kB / 434.5 MB, free: 3.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3187, allocations: 12.03 kB / 434.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.306e-05/0.3188, allocations: 192 / 434.6 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.675e-05/0.3188, allocations: 38.73 kB / 434.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.3189, allocations: 12.89 kB / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.3192, allocations: 149 kB / 434.7 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3192, allocations: 4.312 kB / 434.8 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.3192, allocations: 4.375 kB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.3195, allocations: 96.98 kB / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.964e-06/0.3195, allocations: 0 / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-06/0.3195, allocations: 0 / 434.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.3195, allocations: 4 kB / 434.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.469e-05/0.3196, allocations: 15.98 kB / 434.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.3199, allocations: 236.7 kB / 435.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.32, allocations: 45.2 kB / 435.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.795e-05/0.3201, allocations: 21.78 kB / 435.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.3201, allocations: 7.984 kB / 435.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.3202, allocations: 38.48 kB / 435.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.3202, allocations: 0 / 435.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002461/0.3204, allocations: 65.58 kB / 435.3 MB, free: 2.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.3205, allocations: 85.09 kB / 435.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.3206, allocations: 138.2 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.3206, allocations: 25.7 kB / 435.5 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.995e-05/0.3207, allocations: 84.14 kB / 435.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.3207, allocations: 8.234 kB / 435.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.3207, allocations: 17.67 kB / 435.6 MB, free: 2.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3209, allocations: 322.8 kB / 435.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.189e-05/0.3209, allocations: 7.984 kB / 436 MB, free: 2.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.277e-05/0.321, allocations: 21.72 kB / 436 MB, free: 2.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.844e-05/0.3211, allocations: 29.64 kB / 436 MB, free: 2.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3211, allocations: 4 kB / 436 MB, free: 2.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001262/0.3212, allocations: 61.67 kB / 436.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.3212, allocations: 4 kB / 436.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3212, allocations: 0 / 436.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3212, allocations: 0 / 436.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.693e-05/0.3213, allocations: 8 kB / 436.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3213, allocations: 3.938 kB / 436.1 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.208e-05/0.3213, allocations: 0 / 436.1 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3213, allocations: 7.984 kB / 436.1 MB, free: 2.016 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.906e-05/0.3214, allocations: 117.8 kB / 436.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.916e-05/0.3215, allocations: 41.72 kB / 436.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.531e-05/0.3215, allocations: 15.75 kB / 436.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3215, allocations: 4 kB / 436.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3215, allocations: 0 / 436.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.3215, allocations: 0 / 436.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.3217, allocations: 136.6 kB / 436.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3217, allocations: 4 kB / 436.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.3217, allocations: 7.984 kB / 436.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3217, allocations: 3.938 kB / 436.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.3218, allocations: 0 / 436.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3218, allocations: 4.031 kB / 436.4 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3218, allocations: 3.938 kB / 436.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001823/0.3219, allocations: 164.3 kB / 436.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.322, allocations: 15.95 kB / 436.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.322, allocations: 0 / 436.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.656e-05/0.3221, allocations: 7.984 kB / 436.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.253e-05/0.3221, allocations: 0 / 436.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.3221, allocations: 0 / 436.6 MB, free: 1.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.494e-05/0.3222, allocations: 114 kB / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3222, allocations: 0 / 436.7 MB, free: 1.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000213/0.3224, allocations: 8.031 kB / 436.7 MB, free: 1.305 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.0005046/0.3229, allocations: 0.6897 MB / 437.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.323, allocations: 23.98 kB / 437.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.323, allocations: 0 / 437.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.53e-05/0.3231, allocations: 7.938 kB / 437.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.3234, allocations: 24.23 kB / 437.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.3247, allocations: 1.312 MB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.694e-05/0.3248, allocations: 79.31 kB / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.006e-05/0.3249, allocations: 0 / 438.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.3249, allocations: 23.55 kB / 438.9 MB, free: 15 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3249, allocations: 3.938 kB / 438.9 MB, free: 15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.3478, allocations: 1.67 MB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.1, allocations: 8.5 kB / 440.6 MB, free: 13.45 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.723252226947807]