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.001604/0.001604, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002067/0.002067, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.526/1.526, allocations: 230.6 MB / 257.5 MB, free: 7.785 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3119, allocations: 53.36 MB / 431.1 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.002734/0.3147, allocations: 1.5 MB / 432.6 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009365/0.3156, allocations: 478.7 kB / 433 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.237e-05/0.3157, allocations: 0 / 433 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.273e-05/0.3157, allocations: 3.938 kB / 433 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.3158, allocations: 27.78 kB / 433.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002288/0.3161, allocations: 31.91 kB / 433.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.3162, allocations: 67.78 kB / 433.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.368e-05/0.3163, allocations: 12.09 kB / 433.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.3165, allocations: 43.86 kB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.73e-05/0.3165, allocations: 23.91 kB / 433.2 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.3166, allocations: 4 kB / 433.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.755e-05/0.3166, allocations: 19.98 kB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.3166, allocations: 19.86 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.983e-05/0.3167, allocations: 23.86 kB / 433.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.3168, allocations: 61.42 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3168, allocations: 4 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3168, allocations: 0 / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3169, allocations: 0 / 433.4 MB, free: 4.309 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.0007007/0.3176, allocations: 318 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3176, allocations: 12.03 kB / 433.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.984e-05/0.3176, allocations: 30.75 kB / 433.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.318, allocations: 36.86 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.3182, allocations: 122.5 kB / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3182, allocations: 384 / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.244e-05/0.3182, allocations: 384 / 433.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.3185, allocations: 96.09 kB / 434 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.3185, allocations: 3.984 kB / 434 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3185, allocations: 3.938 kB / 434 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3185, allocations: 4 kB / 434 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/0.3188, allocations: 59.94 kB / 434 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002102/0.319, allocations: 170.4 kB / 434.2 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.3192, allocations: 95.75 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.3194, allocations: 50.61 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.3194, allocations: 3.938 kB / 434.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.3194, allocations: 38.55 kB / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3194, allocations: 0 / 434.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005196/0.32, allocations: 137.8 kB / 434.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.32, allocations: 110.7 kB / 434.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.3201, allocations: 136.7 kB / 434.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.3202, allocations: 25.7 kB / 434.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.3202, allocations: 92.14 kB / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.3202, allocations: 7.906 kB / 434.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.3203, allocations: 21.7 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3204, allocations: 318.8 kB / 435.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.3206, allocations: 32.06 kB / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.3207, allocations: 50.55 kB / 435.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002594/0.3209, allocations: 82.45 kB / 435.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3209, allocations: 0 / 435.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003041/0.3212, allocations: 117.5 kB / 435.5 MB, free: 1.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.3213, allocations: 4 kB / 435.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.3213, allocations: 4 kB / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3213, allocations: 0 / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3214, allocations: 19.97 kB / 435.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3214, allocations: 96 / 435.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.555e-05/0.3215, allocations: 15.98 kB / 435.5 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.3215, allocations: 4 kB / 435.5 MB, free: 1.871 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 8.249e-05/0.3216, allocations: 109.8 kB / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.005e-05/0.3216, allocations: 11.89 kB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.3217, allocations: 15.92 kB / 435.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3217, allocations: 3.984 kB / 435.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3217, allocations: 4 kB / 435.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3217, allocations: 7.938 kB / 435.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.3218, allocations: 144.6 kB / 435.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3218, allocations: 4 kB / 435.8 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3219, allocations: 19.97 kB / 435.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3219, allocations: 0 / 435.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.322, allocations: 4 kB / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.322, allocations: 0 / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.322, allocations: 0 / 435.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003419/0.3223, allocations: 154.6 kB / 436 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/0.3223, allocations: 19.89 kB / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.3223, allocations: 0 / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.3224, allocations: 11.98 kB / 436 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.3225, allocations: 3.984 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.3225, allocations: 7.938 kB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.192e-05/0.3226, allocations: 99.27 kB / 436.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3226, allocations: 0 / 436.2 MB, free: 1.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001973/0.3228, allocations: 12 kB / 436.2 MB, free: 1.168 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.0006562/0.3234, allocations: 0.6766 MB / 436.8 MB, free: 468 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003141/0.3237, allocations: 71.94 kB / 436.9 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3237, allocations: 0 / 436.9 MB, free: 396 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.3239, allocations: 44.08 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001657/0.324, allocations: 4 kB / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.326, allocations: 1.455 MB / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.559e-05/0.3261, allocations: 75.33 kB / 438.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.816e-05/0.3261, allocations: 4 kB / 438.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.137e-05/0.3262, allocations: 23.42 kB / 438.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3262, allocations: 0 / 438.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.3578, allocations: 2.309 MB / 440.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.8, allocations: 3.328 kB / 440.8 MB, free: 12.48 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.432522604998667]