Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 112.5 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001731/0.001731, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 47.92 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2972, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.002816/0.3001, allocations: 1.527 MB / 433.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008992/0.301, allocations: 0.5065 MB / 433.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.483e-05/0.301, allocations: 0 / 433.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.988e-05/0.301, allocations: 7.875 kB / 434 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.426e-05/0.3011, allocations: 15.86 kB / 434 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.3013, allocations: 39.89 kB / 434 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.3015, allocations: 71.66 kB / 434.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.01e-05/0.3015, allocations: 4.172 kB / 434.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.3017, allocations: 43.84 kB / 434.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.041e-05/0.3018, allocations: 35.84 kB / 434.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.955e-05/0.3018, allocations: 4 kB / 434.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.888e-05/0.3019, allocations: 12 kB / 434.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.71e-05/0.3019, allocations: 19.91 kB / 434.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.302, allocations: 27.86 kB / 434.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.3021, allocations: 55.59 kB / 434.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.3021, allocations: 8 kB / 434.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3021, allocations: 0 / 434.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.3021, allocations: 0 / 434.3 MB, free: 4.516 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006504/0.3028, allocations: 318.5 kB / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3028, allocations: 8.031 kB / 434.6 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.654e-05/0.3028, allocations: 4.188 kB / 434.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.468e-05/0.3029, allocations: 34.75 kB / 434.6 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003082/0.3032, allocations: 36.86 kB / 434.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.3034, allocations: 122.4 kB / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.288e-06/0.3034, allocations: 384 / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.3035, allocations: 8.125 kB / 434.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.3037, allocations: 84.22 kB / 434.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3037, allocations: 0 / 434.9 MB, free: 3.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.3038, allocations: 4 kB / 434.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.3038, allocations: 0 / 434.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.304, allocations: 59.88 kB / 435 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002106/0.3042, allocations: 166.5 kB / 435.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.3045, allocations: 103.7 kB / 435.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3047, allocations: 58.55 kB / 435.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.3047, allocations: 3.984 kB / 435.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.3047, allocations: 34.5 kB / 435.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.3047, allocations: 3.938 kB / 435.3 MB, free: 3.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005282/0.3052, allocations: 145.6 kB / 435.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.3053, allocations: 106.8 kB / 435.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.3054, allocations: 128.8 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.3055, allocations: 25.7 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.3055, allocations: 92.12 kB / 435.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.3055, allocations: 16.19 kB / 435.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.3056, allocations: 21.7 kB / 435.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3057, allocations: 314.8 kB / 436.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.3059, allocations: 31.97 kB / 436.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.306, allocations: 50.47 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002653/0.3063, allocations: 82.53 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3063, allocations: 0 / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003237/0.3066, allocations: 117.5 kB / 436.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3066, allocations: 8 kB / 436.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.3066, allocations: 3.984 kB / 436.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3066, allocations: 0 / 436.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3068, allocations: 19.92 kB / 436.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.3068, allocations: 0 / 436.5 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.266e-05/0.3069, allocations: 11.98 kB / 436.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.3069, allocations: 8.094 kB / 436.5 MB, free: 2.074 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 9.127e-05/0.307, allocations: 121.8 kB / 436.6 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.307, allocations: 7.953 kB / 436.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.266e-05/0.307, allocations: 11.92 kB / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.307, allocations: 0 / 436.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.307, allocations: 8 kB / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.307, allocations: 0 / 436.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.3072, allocations: 148.7 kB / 436.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3072, allocations: 0 / 436.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.3073, allocations: 24.06 kB / 436.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3073, allocations: 3.984 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3073, allocations: 4 kB / 436.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.3073, allocations: 0 / 436.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3073, allocations: 3.938 kB / 436.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.3077, allocations: 154.7 kB / 436.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.3077, allocations: 11.89 kB / 437 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.3077, allocations: 7.938 kB / 437 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.022e-05/0.3078, allocations: 7.984 kB / 437 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.3078, allocations: 15.92 kB / 437 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.3078, allocations: 0 / 437 MB, free: 1.473 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.72e-05/0.3079, allocations: 103.3 kB / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3079, allocations: 0 / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001942/0.3081, allocations: 8 kB / 437.1 MB, free: 1.363 MB / 334.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.0006386/0.3087, allocations: 0.6803 MB / 437.8 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000322/0.3091, allocations: 75.88 kB / 437.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3091, allocations: 0 / 437.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.3092, allocations: 44.08 kB / 437.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.3094, allocations: 10.97 kB / 437.9 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001973/0.3113, allocations: 1.453 MB / 439.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.3116, allocations: 0.6846 MB / 440 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.381e-05/0.3117, allocations: 4 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.3117, allocations: 19.42 kB / 440.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3117, allocations: 0 / 440.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.3341, allocations: 1.907 MB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11.02, allocations: 6.125 kB / 442 MB, free: 12.46 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_CompareSincExpSine_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_CompareSincExpSine.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.CompareSincExpSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.600331290974282]