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.001865/0.001865, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.002288/0.002288, allocations: 189 kB / 23.72 MB, free: 4.684 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.644/1.644, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001596/0.001596, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3432, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004032/0.3473, allocations: 2.247 MB / 424.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.3488, allocations: 0.6933 MB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.3489, allocations: 7.938 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.3492, allocations: 59.45 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.3494, allocations: 43.66 kB / 425.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.3497, allocations: 103.7 kB / 425.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.35, allocations: 235.7 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.3503, allocations: 76.02 kB / 426.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.3505, allocations: 99.56 kB / 426.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.3506, allocations: 115.5 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.3507, allocations: 24 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-05/0.3508, allocations: 20 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3509, allocations: 63.77 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.351, allocations: 107.3 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003738/0.3514, allocations: 251.2 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3514, allocations: 3.938 kB / 426.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3514, allocations: 0 / 426.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.3514, allocations: 0 / 426.7 MB, free: 10.49 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.0009623/0.3523, allocations: 477.5 kB / 427.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3524, allocations: 12.03 kB / 427.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.589e-05/0.3525, allocations: 58.72 kB / 427.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.926e-05/0.3525, allocations: 32.75 kB / 427.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.3528, allocations: 190.1 kB / 427.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.3529, allocations: 16.56 kB / 427.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.825e-05/0.3529, allocations: 27.95 kB / 427.5 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.3534, allocations: 258.6 kB / 427.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.3535, allocations: 0 / 427.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.3535, allocations: 15.94 kB / 427.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.294e-05/0.3535, allocations: 12.42 kB / 427.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.354, allocations: 201.5 kB / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.3553, allocations: 0.7749 MB / 428.8 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003837/0.3557, allocations: 182.3 kB / 429 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.3559, allocations: 101.1 kB / 429.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-05/0.356, allocations: 8 kB / 429.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3561, allocations: 34.56 kB / 429.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.3561, allocations: 0 / 429.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001611/0.3577, allocations: 0.6555 MB / 429.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.3577, allocations: 55.41 kB / 429.8 MB, free: 7.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.358, allocations: 213 kB / 430 MB, free: 7 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.358, allocations: 29.7 kB / 430.1 MB, free: 6.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.3581, allocations: 148.5 kB / 430.2 MB, free: 6.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.661e-05/0.3582, allocations: 91.2 kB / 430.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-05/0.3583, allocations: 53.7 kB / 430.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.3585, allocations: 338.8 kB / 430.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.3588, allocations: 79.94 kB / 430.8 MB, free: 6.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.359, allocations: 119.4 kB / 430.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004499/0.3595, allocations: 225.2 kB / 431.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.3595, allocations: 0 / 431.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000557/0.36, allocations: 278.8 kB / 431.4 MB, free: 5.609 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.36, allocations: 7.984 kB / 431.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.36, allocations: 0 / 431.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3601, allocations: 8.062 kB / 431.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.3604, allocations: 59.89 kB / 431.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3604, allocations: 4 kB / 431.4 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.3605, allocations: 15.92 kB / 431.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.3605, allocations: 12 kB / 431.5 MB, free: 5.504 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.0001658/0.3607, allocations: 137.8 kB / 431.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.3608, allocations: 23.86 kB / 431.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006534/0.3614, allocations: 292.4 kB / 431.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3614, allocations: 7.938 kB / 431.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3614, allocations: 0 / 431.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3614, allocations: 3.938 kB / 431.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.3627, allocations: 0.6628 MB / 432.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.3627, allocations: 0 / 432.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.3629, allocations: 55.91 kB / 432.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.3629, allocations: 7.938 kB / 432.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.363, allocations: 4 kB / 432.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.363, allocations: 4 kB / 432.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.363, allocations: 3.984 kB / 432.7 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008602/0.3638, allocations: 490.3 kB / 433.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.364, allocations: 39.84 kB / 433.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.364, allocations: 4 kB / 433.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.3641, allocations: 15.98 kB / 433.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.593e-05/0.3642, allocations: 19.95 kB / 433.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.3642, allocations: 8.188 kB / 433.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.3644, allocations: 160.5 kB / 433.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3644, allocations: 0 / 433.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.3647, allocations: 44 kB / 433.4 MB, free: 3.461 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.00132/0.366, allocations: 1.046 MB / 434.5 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.3666, allocations: 208 kB / 434.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3666, allocations: 0 / 434.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.3669, allocations: 107.9 kB / 434.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.3672, allocations: 28.61 kB / 434.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.3713, allocations: 2.711 MB / 437.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004847/0.3718, allocations: 0.7675 MB / 438.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.372, allocations: 49.84 kB / 438.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001591/0.3721, allocations: 87.41 kB / 438.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3721, allocations: 0 / 438.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03878/0.4109, allocations: 4.865 MB / 443.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.7, allocations: 3.562 kB / 443.3 MB, free: 9.574 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: 15.093982886999584]