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.000948/0.000948, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007653/0.0007653, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9153/0.9153, allocations: 173.4 MB / 200.5 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 2.705e-06/2.705e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.891e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002261/0.00228, allocations: 2.09 MB / 320.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00093/0.00321, allocations: 0.662 MB / 321.2 MB, free: 3.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001178/0.003327, allocations: 7.938 kB / 321.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.003498, allocations: 51.45 kB / 321.2 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.003667, allocations: 47.58 kB / 321.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.0039, allocations: 99.69 kB / 321.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002241/0.004124, allocations: 243.6 kB / 321.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.004285, allocations: 75.94 kB / 321.7 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.004437, allocations: 139.7 kB / 321.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.004547, allocations: 79.77 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.004578, allocations: 19.98 kB / 321.9 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.004647, allocations: 35.92 kB / 322 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.629e-05/0.004704, allocations: 51.77 kB / 322 MB, free: 2.754 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.757e-05/0.004761, allocations: 71.77 kB / 322.1 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.005008, allocations: 251.1 kB / 322.3 MB, free: 2.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.005011, allocations: 4 kB / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.005013, allocations: 0 / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.005018, allocations: 0 / 322.3 MB, free: 2.434 MB / 282.7 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.0006385/0.005656, allocations: 476.8 kB / 322.8 MB, free: 1.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.005697, allocations: 12.92 kB / 322.8 MB, free: 1.926 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.063e-05/0.005748, allocations: 58.72 kB / 322.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.005794, allocations: 32.75 kB / 322.9 MB, free: 1.828 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.006047, allocations: 193.9 kB / 323.1 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.006073, allocations: 20.86 kB / 323.1 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.00611, allocations: 20.38 kB / 323.1 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.006455, allocations: 259.5 kB / 323.4 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.006469, allocations: 3.984 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.006486, allocations: 11.94 kB / 323.4 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.006511, allocations: 12.5 kB / 323.4 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.006775, allocations: 189.9 kB / 323.6 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008069/0.007582, allocations: 0.7556 MB / 324.3 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000254/0.007836, allocations: 169.7 kB / 324.5 MB, free: 116 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.007957, allocations: 96.8 kB / 324.6 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.825e-05/0.008026, allocations: 12.38 kB / 324.6 MB, free: 4 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.008062, allocations: 34.5 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.008063, allocations: 0 / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001259/0.009322, allocations: 0.6569 MB / 325.3 MB, free: 15.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.009354, allocations: 55.34 kB / 325.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.009505, allocations: 217.8 kB / 325.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.00952, allocations: 25.7 kB / 325.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.009611, allocations: 152.5 kB / 325.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.009661, allocations: 91.22 kB / 325.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.009715, allocations: 45.7 kB / 325.9 MB, free: 14.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.869e-05/0.009804, allocations: 338.8 kB / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.009918, allocations: 87.94 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.01005, allocations: 123.3 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.0103, allocations: 218.2 kB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.0103, allocations: 3.938 kB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003025/0.01061, allocations: 277.3 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.01062, allocations: 6.969 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.01063, allocations: 64 / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.01064, allocations: 8 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.0108, allocations: 59.89 kB / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.01081, allocations: 0 / 327 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.01087, allocations: 19.97 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.01089, allocations: 12 kB / 327 MB, free: 13.49 MB / 298.7 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 9.763e-05/0.01098, allocations: 149.8 kB / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.01101, allocations: 27.81 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/0.01137, allocations: 287.2 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.01137, allocations: 4 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.01138, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.01138, allocations: 0 / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006175/0.012, allocations: 0.6433 MB / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.012, allocations: 0 / 328.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.01215, allocations: 51.91 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.01215, allocations: 4 kB / 328.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.01216, allocations: 7.984 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.01217, allocations: 7.938 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.01217, allocations: 0 / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004707/0.01264, allocations: 486.5 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/0.01269, allocations: 43.84 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.01271, allocations: 4 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.326e-05/0.01278, allocations: 19.92 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.01283, allocations: 23.89 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.01284, allocations: 8 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.608e-05/0.01292, allocations: 157.2 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01292, allocations: 0 / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001928/0.01312, allocations: 51.94 kB / 329 MB, free: 11.45 MB / 298.7 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.0006655/0.01378, allocations: 1.019 MB / 330 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002814/0.01406, allocations: 215.2 kB / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01406, allocations: 0 / 330.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.0142, allocations: 116 kB / 330.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.01444, allocations: 32.47 kB / 330.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.01671, allocations: 2.622 MB / 333 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001009/0.01681, allocations: 159.2 kB / 333.1 MB, free: 7.141 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.97e-05/0.01689, allocations: 41.91 kB / 333.2 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.516e-05/0.01698, allocations: 84.47 kB / 333.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01698, allocations: 0 / 333.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.03558, allocations: 5.316 MB / 338.6 MB, free: 1.832 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.945/6.981, allocations: 0.75 kB / 338.6 MB, free: 1.832 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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: 9.24363161623478]