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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001375/0.001375, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001567/0.001567, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 59.75 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1302, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.005339/0.1356, allocations: 2.207 MB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.1377, allocations: 0.7478 MB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002708/0.138, allocations: 7.938 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.1383, allocations: 47.52 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.1386, allocations: 43.59 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.1391, allocations: 103.8 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004345/0.1396, allocations: 235.7 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.1399, allocations: 119.5 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002865/0.1402, allocations: 103.6 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1405, allocations: 111.4 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.1405, allocations: 16 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1407, allocations: 35.98 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.206e-05/0.1408, allocations: 47.84 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.1409, allocations: 111.3 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.1414, allocations: 239.4 kB / 361.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1414, allocations: 4 kB / 361.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1414, allocations: 0 / 361.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.356e-05/0.1414, allocations: 0 / 361.7 MB, free: 9.812 MB / 302.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.001219/0.1427, allocations: 0.5379 MB / 362.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1427, allocations: 12.03 kB / 362.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.809e-05/0.1428, allocations: 54.72 kB / 362.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.143, allocations: 28.66 kB / 362.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.1434, allocations: 267.5 kB / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.915e-05/0.1435, allocations: 20.81 kB / 362.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-05/0.1435, allocations: 20.38 kB / 362.7 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007424/0.1443, allocations: 254.8 kB / 362.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.1443, allocations: 7.844 kB / 362.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.328e-05/0.1444, allocations: 8 kB / 362.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.892e-05/0.1444, allocations: 20.36 kB / 362.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006962/0.1451, allocations: 193.6 kB / 363.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.1469, allocations: 0.8263 MB / 364 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005354/0.1475, allocations: 182.5 kB / 364.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.1478, allocations: 108.2 kB / 364.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001384/0.148, allocations: 89.47 kB / 364.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.148, allocations: 38.48 kB / 364.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.685e-06/0.148, allocations: 0 / 364.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.002208/0.1503, allocations: 0.7178 MB / 365.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.1503, allocations: 55.41 kB / 365.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.1507, allocations: 225 kB / 365.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.1507, allocations: 25.7 kB / 365.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.1508, allocations: 152.4 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.592e-05/0.151, allocations: 82.81 kB / 365.6 MB, free: 5.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.1511, allocations: 49.7 kB / 365.7 MB, free: 5.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1513, allocations: 330.8 kB / 366 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.1516, allocations: 79.95 kB / 366.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.152, allocations: 123.4 kB / 366.2 MB, free: 5.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.1527, allocations: 218.2 kB / 366.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1527, allocations: 0 / 366.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008249/0.1535, allocations: 277.2 kB / 366.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.1536, allocations: 7.281 kB / 366.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.1536, allocations: 8.047 kB / 366.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1536, allocations: 4 kB / 366.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/0.1541, allocations: 59.89 kB / 366.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.1541, allocations: 4 kB / 366.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.1543, allocations: 11.98 kB / 366.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.1544, allocations: 15.98 kB / 366.8 MB, free: 4.422 MB / 302.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.0001887/0.1546, allocations: 149.6 kB / 366.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.939e-05/0.1547, allocations: 23.72 kB / 366.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009038/0.1556, allocations: 299.1 kB / 367.2 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1556, allocations: 4 kB / 367.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1556, allocations: 4.062 kB / 367.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.1556, allocations: 0 / 367.2 MB, free: 3.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.1573, allocations: 0.6944 MB / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1573, allocations: 0 / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.1577, allocations: 51.91 kB / 368 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.1577, allocations: 4 kB / 368 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.1578, allocations: 4 kB / 368 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.1578, allocations: 7.938 kB / 368 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1578, allocations: 0 / 368 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.159, allocations: 484.4 kB / 368.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.1592, allocations: 120.8 kB / 368.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.1593, allocations: 8 kB / 368.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.1595, allocations: 11.92 kB / 368.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.246e-05/0.1596, allocations: 23.97 kB / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.1597, allocations: 11.94 kB / 368.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.1599, allocations: 160.5 kB / 368.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1599, allocations: 0 / 368.8 MB, free: 2.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000585/0.1605, allocations: 48 kB / 368.9 MB, free: 2.23 MB / 302.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.001677/0.1622, allocations: 1.023 MB / 369.9 MB, free: 1.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008936/0.1631, allocations: 239.8 kB / 370.1 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.1632, allocations: 4 kB / 370.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.1635, allocations: 131.9 kB / 370.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.1641, allocations: 26.48 kB / 370.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1726/0.3368, allocations: 2.681 MB / 372.9 MB, free: 19.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.337, allocations: 0.7656 MB / 373.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.3372, allocations: 46.75 kB / 373.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.3373, allocations: 87.62 kB / 373.8 MB, free: 18.45 MB / 302.1 MB Notification: Performance of SimCode: time 5.72e-07/0.3373, allocations: 3.828 kB / 373.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3666, allocations: 4.404 MB / 378.3 MB, free: 18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.408/7.774, allocations: 16.91 kB / 378.3 MB, free: 17.99 MB / 302.1 MB (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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches