Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001451/0.001451, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 214 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 63.91 kB / 377.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3337, allocations: 53.41 MB / 431.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003844/0.3375, allocations: 2.241 MB / 433.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.3391, allocations: 0.7632 MB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.3392, allocations: 11.94 kB / 434.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.3394, allocations: 47.52 kB / 434.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.3397, allocations: 43.58 kB / 434.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.34, allocations: 103.7 kB / 434.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.3404, allocations: 235.7 kB / 434.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.3406, allocations: 83.05 kB / 434.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.3409, allocations: 103.6 kB / 434.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.3411, allocations: 111.5 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.3412, allocations: 20 kB / 434.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.3413, allocations: 32 kB / 435 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.51e-05/0.3413, allocations: 63.77 kB / 435 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.3415, allocations: 107.3 kB / 435.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.3418, allocations: 251.2 kB / 435.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3418, allocations: 4 kB / 435.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3418, allocations: 0 / 435.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.3418, allocations: 0 / 435.4 MB, free: 2.473 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.0009618/0.3428, allocations: 485.4 kB / 435.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3428, allocations: 8.031 kB / 435.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.702e-05/0.3429, allocations: 62.72 kB / 435.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.3431, allocations: 32.75 kB / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.3434, allocations: 186.7 kB / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.3434, allocations: 12.81 kB / 436.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.3434, allocations: 24.38 kB / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.344, allocations: 266.7 kB / 436.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.344, allocations: 0 / 436.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.344, allocations: 12 kB / 436.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/0.344, allocations: 8.438 kB / 436.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.3445, allocations: 197.5 kB / 436.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.3458, allocations: 0.7904 MB / 437.4 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.3462, allocations: 174.5 kB / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.3464, allocations: 100.2 kB / 437.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.453e-05/0.3464, allocations: 12.31 kB / 437.7 MB, free: 0 / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.3465, allocations: 42.58 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.3465, allocations: 0 / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001535/0.348, allocations: 0.653 MB / 438.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.3481, allocations: 55.41 kB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.3483, allocations: 216.9 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3483, allocations: 29.7 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.3485, allocations: 152.5 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.622e-05/0.3485, allocations: 91.27 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.3486, allocations: 49.7 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3488, allocations: 334.8 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.349, allocations: 75.95 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.3492, allocations: 124.1 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.3496, allocations: 222.2 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.3496, allocations: 0 / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005645/0.3502, allocations: 285.2 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3502, allocations: 8.062 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3502, allocations: 0 / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.3503, allocations: 4 kB / 440 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.3505, allocations: 59.89 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3506, allocations: 0 / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3507, allocations: 15.98 kB / 440.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.3507, allocations: 15.98 kB / 440.1 MB, free: 13.47 MB / 350.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.0001691/0.3509, allocations: 141.7 kB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.692e-05/0.3509, allocations: 27.86 kB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006519/0.3516, allocations: 291.3 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3516, allocations: 4 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3516, allocations: 3.984 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3516, allocations: 0 / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.3528, allocations: 0.6548 MB / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3528, allocations: 0 / 441.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.3531, allocations: 59.89 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.3531, allocations: 4 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3531, allocations: 4.062 kB / 441.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-05/0.3532, allocations: 11.94 kB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3532, allocations: 0 / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.354, allocations: 486 kB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.3541, allocations: 43.78 kB / 441.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.3542, allocations: 8 kB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.3543, allocations: 15.92 kB / 441.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/0.3544, allocations: 19.97 kB / 441.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3544, allocations: 8 kB / 441.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000165/0.3545, allocations: 164.5 kB / 442 MB, free: 11.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3545, allocations: 0 / 442 MB, free: 11.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003288/0.3549, allocations: 47.94 kB / 442.1 MB, free: 11.41 MB / 350.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.001198/0.3561, allocations: 1.027 MB / 443.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005459/0.3566, allocations: 211.8 kB / 443.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3566, allocations: 0 / 443.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.3569, allocations: 107.9 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3572, allocations: 31.11 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.361, allocations: 2.708 MB / 446.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3614, allocations: 0.7639 MB / 446.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.3615, allocations: 41.92 kB / 447 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3617, allocations: 87.41 kB / 447 MB, free: 6.289 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3617, allocations: 0 / 447 MB, free: 6.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0368/0.3985, allocations: 4.819 MB / 451.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.52, allocations: 4.766 kB / 451.9 MB, free: 1.566 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.58692985900052]