Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 114.2 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 197.3 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3383, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003068/0.3415, allocations: 1.575 MB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009263/0.3424, allocations: 475.7 kB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.464e-05/0.3425, allocations: 4 kB / 402.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.689e-05/0.3426, allocations: 3.938 kB / 402.3 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.3427, allocations: 19.84 kB / 402.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.343, allocations: 51.83 kB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.3431, allocations: 39.86 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.3432, allocations: 16.17 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.965e-05/0.3433, allocations: 31.84 kB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.251e-05/0.3434, allocations: 27.8 kB / 402.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.3434, allocations: 0 / 402.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.3434, allocations: 4 kB / 402.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.669e-05/0.3435, allocations: 15.94 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.028e-05/0.3435, allocations: 27.8 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.3437, allocations: 54.7 kB / 402.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3437, allocations: 3.984 kB / 402.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3437, allocations: 0 / 402.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3437, allocations: 4 kB / 402.6 MB, free: 6.473 MB / 318.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.0005544/0.3443, allocations: 375.1 kB / 402.9 MB, free: 6.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3443, allocations: 8.031 kB / 403 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.455e-05/0.3444, allocations: 42.69 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.3444, allocations: 16.89 kB / 403 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.3447, allocations: 200.2 kB / 403.2 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.3447, allocations: 4.375 kB / 403.2 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.3448, allocations: 4.375 kB / 403.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.345, allocations: 121.8 kB / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.3451, allocations: 0 / 403.3 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.3451, allocations: 4 kB / 403.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3451, allocations: 0 / 403.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.569e-05/0.3452, allocations: 23.92 kB / 403.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004037/0.3456, allocations: 274.6 kB / 403.6 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001271/0.3457, allocations: 67.78 kB / 403.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.192e-05/0.3458, allocations: 34.56 kB / 403.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.897e-05/0.3458, allocations: 4 kB / 403.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.209e-05/0.3459, allocations: 42.5 kB / 403.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3459, allocations: 0 / 403.8 MB, free: 5.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002795/0.3462, allocations: 81.56 kB / 403.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.3463, allocations: 103.2 kB / 404 MB, free: 4.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.3464, allocations: 156.3 kB / 404.1 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.3465, allocations: 25.7 kB / 404.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.796e-05/0.3466, allocations: 88.08 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.3466, allocations: 7.953 kB / 404.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.696e-05/0.3467, allocations: 21.7 kB / 404.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.3469, allocations: 318.8 kB / 404.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.003e-05/0.3469, allocations: 11.98 kB / 404.6 MB, free: 4.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.468e-05/0.347, allocations: 39.42 kB / 404.6 MB, free: 4.148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.3471, allocations: 43.36 kB / 404.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3471, allocations: 0 / 404.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001547/0.3473, allocations: 73.58 kB / 404.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.3473, allocations: 6.188 kB / 404.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3473, allocations: 4 kB / 404.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.3474, allocations: 3.938 kB / 404.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.303e-05/0.3475, allocations: 11.98 kB / 404.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.3475, allocations: 3.938 kB / 404.8 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.202e-05/0.3475, allocations: 4 kB / 404.8 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.3476, allocations: 4.125 kB / 404.8 MB, free: 3.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 0.0001209/0.3477, allocations: 125.8 kB / 404.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.3478, allocations: 49.59 kB / 404.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.3478, allocations: 15.86 kB / 404.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.3478, allocations: 0 / 404.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.3478, allocations: 4 kB / 405 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3479, allocations: 0 / 405 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.3481, allocations: 169.6 kB / 405.1 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3481, allocations: 4 kB / 405.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.214e-05/0.3482, allocations: 20.05 kB / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3482, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.826e-06/0.3482, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.3482, allocations: 0 / 405.1 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3482, allocations: 7.938 kB / 405.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002366/0.3485, allocations: 185.1 kB / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-05/0.3485, allocations: 89.05 kB / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.3486, allocations: 0 / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.3487, allocations: 15.98 kB / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.3487, allocations: 0 / 405.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3487, allocations: 4 kB / 405.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.3488, allocations: 110.3 kB / 405.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3488, allocations: 0 / 405.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.3491, allocations: 8 kB / 405.6 MB, free: 3.082 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.000671/0.3497, allocations: 0.7141 MB / 406.3 MB, free: 2.336 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.3499, allocations: 36.03 kB / 406.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3499, allocations: 4 kB / 406.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.869e-05/0.35, allocations: 7.984 kB / 406.3 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.3504, allocations: 30.88 kB / 406.3 MB, free: 2.262 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3521, allocations: 1.388 MB / 407.7 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.3526, allocations: 0.7 MB / 408.4 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.552e-05/0.3527, allocations: 4 kB / 408.4 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/0.3527, allocations: 15.42 kB / 408.5 MB, free: 16 kB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3528, allocations: 0 / 408.5 MB, free: 16 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.3772, allocations: 1.679 MB / 410.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.786/9.163, allocations: 16.56 kB / 410.1 MB, free: 14.43 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches