Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00238/0.00238, allocations: 194.6 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 55.86 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3282, allocations: 52.19 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003817/0.332, allocations: 2.104 MB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.3334, allocations: 0.6505 MB / 425.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.3335, allocations: 7.938 kB / 425.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.3337, allocations: 47.53 kB / 425.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.3339, allocations: 51.58 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002978/0.3342, allocations: 99.7 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.3345, allocations: 239.7 kB / 425.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.3347, allocations: 75.81 kB / 425.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.3349, allocations: 95.56 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.335, allocations: 99.47 kB / 426 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.785e-05/0.3351, allocations: 24 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.007e-05/0.3352, allocations: 27.98 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.626e-05/0.3352, allocations: 55.84 kB / 426.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.853e-05/0.3353, allocations: 87.45 kB / 426.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.3357, allocations: 248.6 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3357, allocations: 0 / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3357, allocations: 0 / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.902e-06/0.3357, allocations: 0 / 426.5 MB, free: 10.48 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000951/0.3366, allocations: 489.5 kB / 426.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3367, allocations: 8.031 kB / 426.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.046e-05/0.3367, allocations: 54.73 kB / 427 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.386e-05/0.3368, allocations: 40.69 kB / 427 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.3371, allocations: 198 kB / 427.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.3371, allocations: 20.55 kB / 427.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.3372, allocations: 23.95 kB / 427.3 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004965/0.3377, allocations: 254.7 kB / 427.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3377, allocations: 3.938 kB / 427.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.3377, allocations: 16 kB / 427.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3378, allocations: 12.44 kB / 427.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004346/0.3382, allocations: 189.5 kB / 427.7 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.3394, allocations: 0.7437 MB / 428.5 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003606/0.3397, allocations: 178.4 kB / 428.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.3399, allocations: 99.19 kB / 428.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.794e-05/0.34, allocations: 11.98 kB / 428.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.34, allocations: 34.56 kB / 428.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.34, allocations: 0 / 428.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001506/0.3415, allocations: 0.6544 MB / 429.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.033e-05/0.3416, allocations: 63.39 kB / 429.5 MB, free: 7.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.3418, allocations: 212.9 kB / 429.7 MB, free: 7.004 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3419, allocations: 33.7 kB / 429.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.342, allocations: 144.6 kB / 429.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.346e-05/0.3421, allocations: 87.22 kB / 430 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.758e-05/0.3421, allocations: 49.7 kB / 430 MB, free: 6.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3423, allocations: 334.8 kB / 430.4 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.3425, allocations: 83.94 kB / 430.4 MB, free: 6.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.3427, allocations: 127.4 kB / 430.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.3432, allocations: 214.3 kB / 430.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.3432, allocations: 0 / 430.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005449/0.3437, allocations: 269.3 kB / 431 MB, free: 5.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.3437, allocations: 8.062 kB / 431 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3437, allocations: 4 kB / 431.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.3437, allocations: 0 / 431.1 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.344, allocations: 63.89 kB / 431.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.344, allocations: 4 kB / 431.1 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.3442, allocations: 23.91 kB / 431.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.3442, allocations: 4 kB / 431.1 MB, free: 5.527 MB / 334.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: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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.0001579/0.3443, allocations: 145.8 kB / 431.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.3444, allocations: 19.86 kB / 431.3 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006406/0.345, allocations: 304.4 kB / 431.6 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.345, allocations: 8 kB / 431.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.345, allocations: 0 / 431.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3451, allocations: 7.875 kB / 431.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3461, allocations: 0.6277 MB / 432.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3461, allocations: 7.969 kB / 432.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.3464, allocations: 59.91 kB / 432.3 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.3464, allocations: 7.922 kB / 432.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.3464, allocations: 8 kB / 432.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3464, allocations: 0 / 432.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3464, allocations: 0 / 432.3 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/0.3473, allocations: 490.3 kB / 432.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.3473, allocations: 39.83 kB / 432.8 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.376e-05/0.3474, allocations: 15.94 kB / 432.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.3475, allocations: 11.98 kB / 432.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.3476, allocations: 19.97 kB / 432.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3476, allocations: 8 kB / 432.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.3477, allocations: 160.5 kB / 433.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3477, allocations: 0 / 433.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.348, allocations: 40 kB / 433.1 MB, free: 3.488 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * 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 (28): * Single equations (assignments): 28 * 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.001195/0.3492, allocations: 1.034 MB / 434.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005097/0.3497, allocations: 204.1 kB / 434.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3497, allocations: 4 kB / 434.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.35, allocations: 111.8 kB / 434.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.3503, allocations: 24.42 kB / 434.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.3539, allocations: 2.708 MB / 437.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.3541, allocations: 162.9 kB / 437.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.3542, allocations: 41.92 kB / 437.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.3544, allocations: 91.39 kB / 437.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3544, allocations: 0 / 437.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.3883, allocations: 5.174 MB / 442.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.81, allocations: 10.09 kB / 442.6 MB, free: 9.93 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable integrator.y in file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.94365936005488]