Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.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.Blocks.Examples.FilterWithRiseTime,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithRiseTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.FilterWithRiseTime,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithRiseTime",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.001754/0.001754, allocations: 110.8 kB / 17.06 MB, free: 5.953 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.002104/0.002104, allocations: 196 kB / 18 MB, free: 5.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.03/2.03, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 51.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.541/0.5431, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.FilterWithRiseTime): time 0.00554/0.5487, allocations: 1.823 MB / 402 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.5592, allocations: 3.515 MB / 405.6 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004098/0.5596, allocations: 3.938 kB / 405.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007788/0.5605, allocations: 127.4 kB / 405.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.5608, allocations: 35.66 kB / 405.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008469/0.5693, allocations: 1.778 MB / 407.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008202/0.5701, allocations: 303.2 kB / 407.8 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001882/0.5703, allocations: 24.75 kB / 407.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.5706, allocations: 115.5 kB / 407.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.5709, allocations: 115.3 kB / 408 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.5709, allocations: 12 kB / 408.1 MB, free: 1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004733/0.5714, allocations: 139.7 kB / 408.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.5716, allocations: 71.75 kB / 408.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.5718, allocations: 99.34 kB / 408.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006846/0.5725, allocations: 342.8 kB / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.5725, allocations: 0 / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.577e-06/0.5725, allocations: 0 / 408.7 MB, free: 368 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.5725, allocations: 0 / 408.7 MB, free: 368 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00127/0.5738, allocations: 0.5763 MB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.635e-05/0.5739, allocations: 8.031 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.923e-05/0.574, allocations: 46.73 kB / 409.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.5741, allocations: 32.56 kB / 409.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006761/0.5748, allocations: 283.8 kB / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.5748, allocations: 8 kB / 409.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.5749, allocations: 16 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005145/0.5755, allocations: 204 kB / 409.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.5755, allocations: 3.938 kB / 409.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.5755, allocations: 11.94 kB / 409.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.5755, allocations: 0 / 409.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.5759, allocations: 87.94 kB / 410 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.5772, allocations: 488.3 kB / 410.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/0.5778, allocations: 182 kB / 410.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.578, allocations: 52.83 kB / 410.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.578, allocations: 7.984 kB / 410.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.5781, allocations: 38.55 kB / 410.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 2.033e-06/0.5781, allocations: 0 / 410.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008135/0.579, allocations: 221.4 kB / 410.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/0.5792, allocations: 286.7 kB / 411.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.5796, allocations: 288.5 kB / 411.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.5797, allocations: 33.69 kB / 411.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.5799, allocations: 156.5 kB / 411.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.511e-05/0.5799, allocations: 51.25 kB / 411.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.5801, allocations: 61.69 kB / 411.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.5803, allocations: 338.8 kB / 412.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.5806, allocations: 95.94 kB / 412.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.581, allocations: 184.5 kB / 412.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005721/0.5816, allocations: 205.5 kB / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.5816, allocations: 0 / 412.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008412/0.5825, allocations: 305.2 kB / 412.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.5825, allocations: 8 kB / 412.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/0.5826, allocations: 7.984 kB / 412.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.5826, allocations: 7.938 kB / 412.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.5831, allocations: 47.91 kB / 413 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.5831, allocations: 0 / 413 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.5833, allocations: 23.78 kB / 413 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.5834, allocations: 15.98 kB / 413 MB, free: 11.71 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 19 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 3 * 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.0002119/0.5836, allocations: 141.8 kB / 413.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.5837, allocations: 31.62 kB / 413.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.231e-05/0.5838, allocations: 33.91 kB / 413.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5838, allocations: 0 / 413.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.5838, allocations: 4 kB / 413.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5838, allocations: 0 / 413.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004457/0.5843, allocations: 269.5 kB / 413.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.5843, allocations: 112 / 413.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003231/0.5846, allocations: 31.92 kB / 413.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.5847, allocations: 0 / 413.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.5847, allocations: 7.938 kB / 413.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.5847, allocations: 0 / 413.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.5847, allocations: 4 kB / 413.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007449/0.5855, allocations: 335 kB / 413.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.5856, allocations: 112.7 kB / 413.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.858e-05/0.5857, allocations: 7.938 kB / 414 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.5859, allocations: 8 kB / 414 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.586, allocations: 7.984 kB / 414 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.586, allocations: 8 kB / 414 MB, free: 10.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000318/0.5864, allocations: 199.1 kB / 414.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5864, allocations: 0 / 414.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000673/0.5871, allocations: 75.98 kB / 414.2 MB, free: 10.36 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (filter_fac5.x[1],filter_fac5.x[2],filter_fac4.x[1],filter_fac4.x[2],filter_fac3.x[1],filter_fac3.x[2]) * 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 (13): * Single equations (assignments): 13 * 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.001401/0.5885, allocations: 0.911 MB / 415.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007123/0.5892, allocations: 288.9 kB / 415.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5892, allocations: 0 / 415.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.5894, allocations: 63.91 kB / 415.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008015/0.5903, allocations: 73.52 kB / 415.6 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005609/0.5959, allocations: 2.778 MB / 418.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005499/0.5965, allocations: 0.7635 MB / 419.1 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.5968, allocations: 58.14 kB / 419.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.597, allocations: 87.34 kB / 419.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.597, allocations: 0 / 419.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04419/0.6412, allocations: 6.603 MB / 425.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/14.05, allocations: 19.34 kB / 425.9 MB, free: 14.68 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithRiseTime_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_FilterWithRiseTime.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/FilterWithRiseTime/FilterWithRiseTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.FilterWithRiseTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,filter_fac3.x[1],filter_fac3.x[2],filter_fac4.x[1],filter_fac4.x[2],filter_fac5.x[1],filter_fac5.x[2] Variables in the result:der(filter_fac3.x[1]),der(filter_fac3.x[2]),der(filter_fac4.x[1]),der(filter_fac4.x[2]),der(filter_fac5.x[1]),der(filter_fac5.x[2]),filter_fac3.A_ripple,filter_fac3.analogFilter,filter_fac3.f_cut,filter_fac3.f_min,filter_fac3.filterType,filter_fac3.gain,filter_fac3.init,filter_fac3.normalized,filter_fac3.nx,filter_fac3.order,filter_fac3.u,filter_fac3.u_nominal,filter_fac3.x[1],filter_fac3.x[2],filter_fac3.x_start[1],filter_fac3.x_start[2],filter_fac3.y,filter_fac3.y_start,filter_fac4.A_ripple,filter_fac4.analogFilter,filter_fac4.f_cut,filter_fac4.f_min,filter_fac4.filterType,filter_fac4.gain,filter_fac4.init,filter_fac4.normalized,filter_fac4.nx,filter_fac4.order,filter_fac4.u,filter_fac4.u_nominal,filter_fac4.x[1],filter_fac4.x[2],filter_fac4.x_start[1],filter_fac4.x_start[2],filter_fac4.y,filter_fac4.y_start,filter_fac5.A_ripple,filter_fac5.analogFilter,filter_fac5.f_cut,filter_fac5.f_min,filter_fac5.filterType,filter_fac5.gain,filter_fac5.init,filter_fac5.normalized,filter_fac5.nx,filter_fac5.order,filter_fac5.u,filter_fac5.u_nominal,filter_fac5.x[1],filter_fac5.x[2],filter_fac5.x_start[1],filter_fac5.x_start[2],filter_fac5.y,filter_fac5.y_start,order,riseTime,step.height,step.offset,step.startTime,step.y,time