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.001306/0.001306, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.00143/0.00143, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.622/1.622, allocations: 230.5 MB / 257.4 MB, free: 7.73 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.002114/0.002114, allocations: 59.91 kB / 377.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3597, allocations: 53.42 MB / 431.1 MB, free: 6.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004545/0.3642, allocations: 2.116 MB / 433.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.3658, allocations: 0.7088 MB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.366, allocations: 7.938 kB / 434 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.3662, allocations: 47.52 kB / 434 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.3664, allocations: 39.59 kB / 434.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.3667, allocations: 115.8 kB / 434.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000345/0.3671, allocations: 231.7 kB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002292/0.3673, allocations: 78.81 kB / 434.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002694/0.3676, allocations: 99.62 kB / 434.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.3678, allocations: 103.5 kB / 434.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.3678, allocations: 16 kB / 434.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.3679, allocations: 39.98 kB / 434.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.442e-05/0.368, allocations: 55.77 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.3681, allocations: 87.47 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004082/0.3685, allocations: 248.6 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3685, allocations: 11.94 kB / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3685, allocations: 0 / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.3685, allocations: 3.984 kB / 435.1 MB, free: 2.414 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.001014/0.3696, allocations: 485.4 kB / 435.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3696, allocations: 11.98 kB / 435.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.246e-05/0.3697, allocations: 58.72 kB / 435.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.3698, allocations: 28.8 kB / 435.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.3702, allocations: 194.7 kB / 435.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.253e-05/0.3702, allocations: 16.81 kB / 435.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.172e-05/0.3702, allocations: 24.38 kB / 435.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.3708, allocations: 258.7 kB / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.3708, allocations: 0 / 436.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.3708, allocations: 4 kB / 436.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.755e-05/0.3709, allocations: 20.42 kB / 436.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.3714, allocations: 185.6 kB / 436.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.3728, allocations: 0.7593 MB / 437.1 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003906/0.3732, allocations: 178 kB / 437.3 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.3734, allocations: 96.84 kB / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.595e-05/0.3735, allocations: 8.312 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.3735, allocations: 50.44 kB / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.3735, allocations: 0 / 437.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00156/0.3751, allocations: 0.6452 MB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.3751, allocations: 59.34 kB / 438.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.3754, allocations: 217 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.3754, allocations: 25.7 kB / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3756, allocations: 156.5 kB / 438.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.184e-05/0.3757, allocations: 87.27 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.16e-05/0.3757, allocations: 53.69 kB / 438.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3759, allocations: 326.8 kB / 439 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.3761, allocations: 87.94 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002332/0.3763, allocations: 124.1 kB / 439.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/0.3768, allocations: 218.6 kB / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3768, allocations: 0 / 439.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005609/0.3774, allocations: 281.2 kB / 439.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/0.3774, allocations: 8 kB / 439.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3774, allocations: 0 / 439.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.3774, allocations: 4 kB / 439.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003117/0.3777, allocations: 63.89 kB / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.3777, allocations: 4.062 kB / 439.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.3779, allocations: 15.98 kB / 439.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.3779, allocations: 11.98 kB / 439.8 MB, free: 13.46 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.0001859/0.3781, allocations: 149.6 kB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.365e-05/0.3781, allocations: 23.86 kB / 440 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006545/0.3788, allocations: 291.3 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3788, allocations: 4 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3788, allocations: 0 / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.3788, allocations: 7.984 kB / 440.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3799, allocations: 0.6197 MB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3799, allocations: 0 / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.3802, allocations: 63.89 kB / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3802, allocations: 0 / 441 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.3802, allocations: 8.062 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.3802, allocations: 7.938 kB / 441 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.3802, allocations: 8.031 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.3811, allocations: 481.9 kB / 441.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.87e-05/0.3812, allocations: 39.89 kB / 441.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.3812, allocations: 11.94 kB / 441.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.3814, allocations: 15.92 kB / 441.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.3814, allocations: 19.97 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.3814, allocations: 11.98 kB / 441.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.3816, allocations: 160.5 kB / 441.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3816, allocations: 3.938 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.3819, allocations: 43.94 kB / 441.8 MB, free: 11.42 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.001204/0.3831, allocations: 1.031 MB / 442.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004922/0.3836, allocations: 211.8 kB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3836, allocations: 0 / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.3838, allocations: 111.9 kB / 443.1 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.0003344/0.3842, allocations: 24.38 kB / 443.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00375/0.3879, allocations: 2.7 MB / 445.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001788/0.3881, allocations: 151.2 kB / 446 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.3882, allocations: 49.89 kB / 446 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.3884, allocations: 91.34 kB / 446.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3884, allocations: 0 / 446.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03882/0.4272, allocations: 5.095 MB / 451.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.36, allocations: 3.938 kB / 451.2 MB, free: 1.914 MB / 350.1 MB " [Timeout remaining time 649] (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.658868222963065]