Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.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.001343/0.001343, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.001743/0.001743, allocations: 212.9 kB / 23.74 MB, free: 4.688 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.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 8.039 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.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 51.91 kB / 377.8 MB, free: 3.254 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3552, allocations: 53.36 MB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003977/0.3592, allocations: 2.245 MB / 433.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.361, allocations: 0.7556 MB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002363/0.3612, allocations: 11.88 kB / 434.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.3615, allocations: 47.52 kB / 434.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.3618, allocations: 39.66 kB / 434.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.3622, allocations: 119.6 kB / 434.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.3626, allocations: 223.7 kB / 434.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.3628, allocations: 85.62 kB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.3631, allocations: 103.6 kB / 434.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.3633, allocations: 107.5 kB / 434.9 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.235e-05/0.3634, allocations: 19.94 kB / 434.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.3635, allocations: 43.98 kB / 434.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3636, allocations: 51.83 kB / 435 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3637, allocations: 103.3 kB / 435.1 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.3642, allocations: 259.2 kB / 435.3 MB, free: 2.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.3642, allocations: 3.938 kB / 435.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3642, allocations: 0 / 435.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.3642, allocations: 0 / 435.3 MB, free: 2.691 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.001193/0.3654, allocations: 489.4 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3655, allocations: 12.03 kB / 435.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.007e-05/0.3656, allocations: 50.73 kB / 435.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.3657, allocations: 36.73 kB / 435.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.3661, allocations: 191.3 kB / 436.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.801e-05/0.3662, allocations: 28.8 kB / 436.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.828e-05/0.3662, allocations: 20.38 kB / 436.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.3667, allocations: 254.8 kB / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3667, allocations: 0 / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.3667, allocations: 4 kB / 436.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-05/0.3668, allocations: 12.44 kB / 436.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004678/0.3673, allocations: 197.5 kB / 436.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.3685, allocations: 0.7904 MB / 437.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004345/0.3689, allocations: 176.3 kB / 437.6 MB, free: 336 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.3692, allocations: 96.8 kB / 437.6 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.3693, allocations: 16.34 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.3693, allocations: 38.48 kB / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.984e-06/0.3693, allocations: 4 kB / 437.7 MB, free: 168 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001687/0.371, allocations: 0.6469 MB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.3711, allocations: 55.41 kB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.3713, allocations: 217 kB / 438.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.3713, allocations: 29.64 kB / 438.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3715, allocations: 156.5 kB / 438.8 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.846e-05/0.3716, allocations: 87.28 kB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.939e-05/0.3716, allocations: 45.7 kB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3718, allocations: 330.8 kB / 439.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.372, allocations: 87.94 kB / 439.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.3722, allocations: 128.1 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.3727, allocations: 217.7 kB / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3727, allocations: 0 / 439.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005557/0.3732, allocations: 277.3 kB / 439.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3733, allocations: 4 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3733, allocations: 4 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.3733, allocations: 64 / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.3736, allocations: 67.89 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.3736, allocations: 4 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.3737, allocations: 19.97 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.3737, allocations: 4 kB / 440 MB, free: 13.7 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.0001636/0.3739, allocations: 153.7 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.87e-05/0.374, allocations: 27.78 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006678/0.3746, allocations: 299.2 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3746, allocations: 0 / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.3746, allocations: 0 / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.3746, allocations: 4 kB / 440.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.3758, allocations: 0.6586 MB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3758, allocations: 0 / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.3761, allocations: 55.91 kB / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.3761, allocations: 0 / 441.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.3761, allocations: 8 kB / 441.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.3761, allocations: 3.938 kB / 441.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3761, allocations: 3.984 kB / 441.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008392/0.377, allocations: 485.5 kB / 441.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.611e-05/0.3771, allocations: 43.84 kB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.3771, allocations: 4 kB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.3773, allocations: 19.92 kB / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.856e-05/0.3773, allocations: 15.97 kB / 441.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.3773, allocations: 15.98 kB / 441.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.3775, allocations: 156.4 kB / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3775, allocations: 0 / 442 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.3778, allocations: 47.94 kB / 442 MB, free: 11.64 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.0012/0.379, allocations: 1.031 MB / 443.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.3795, allocations: 210.1 kB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3795, allocations: 0 / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002413/0.3798, allocations: 115.9 kB / 443.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.3801, allocations: 27.56 kB / 443.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003635/0.3838, allocations: 2.703 MB / 446.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.3842, allocations: 0.7678 MB / 446.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001497/0.3843, allocations: 45.89 kB / 446.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3845, allocations: 83.41 kB / 447 MB, free: 6.512 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3845, allocations: 0 / 447 MB, free: 6.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.4201, allocations: 4.824 MB / 451.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.61, allocations: 0 / 451.8 MB, free: 1.816 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable integrator.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! Error: Could not read variable der1.y in file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv. Warning: Get data of variable der1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.715919831000065]