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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009417/0.000942, allocations: 91.34 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 184.7 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003058, allocations: 8.688 kB / 301.5 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1335, allocations: 50.41 MB / 351.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002579/0.1362, allocations: 1.874 MB / 353.8 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.1374, allocations: 0.6778 MB / 354.5 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.1375, allocations: 7.938 kB / 354.5 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001763/0.1377, allocations: 35.66 kB / 354.5 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.1379, allocations: 31.78 kB / 354.6 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.1382, allocations: 95.11 kB / 354.7 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.1384, allocations: 219.7 kB / 354.9 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.1387, allocations: 111.5 kB / 355 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.1389, allocations: 63.66 kB / 355 MB, free: 492 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.139, allocations: 87.48 kB / 355.1 MB, free: 404 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.1391, allocations: 8 kB / 355.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.183e-05/0.1392, allocations: 23.92 kB / 355.2 MB, free: 372 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.771e-05/0.1392, allocations: 43.72 kB / 355.2 MB, free: 328 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.1393, allocations: 113 kB / 355.3 MB, free: 208 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.1396, allocations: 215.5 kB / 355.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1396, allocations: 7.938 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1396, allocations: 0 / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1397, allocations: 0 / 355.5 MB, free: 15.98 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.0008471/0.1405, allocations: 0.4989 MB / 356 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.1406, allocations: 8.031 kB / 356 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.355e-05/0.1406, allocations: 62.72 kB / 356.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.1407, allocations: 32.56 kB / 356.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.141, allocations: 256.3 kB / 356.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.141, allocations: 16.8 kB / 356.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.1411, allocations: 27.94 kB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004742/0.1416, allocations: 254.7 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1416, allocations: 4 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.1416, allocations: 8 kB / 356.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.1417, allocations: 16.42 kB / 356.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004604/0.1421, allocations: 201.5 kB / 356.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.1433, allocations: 0.8224 MB / 357.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003715/0.1437, allocations: 193.5 kB / 357.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.1439, allocations: 117.2 kB / 358 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.144, allocations: 89.03 kB / 358.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.1441, allocations: 34.55 kB / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.1441, allocations: 0 / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00151/0.1456, allocations: 0.758 MB / 358.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.1456, allocations: 51.41 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.1459, allocations: 221 kB / 359.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.1459, allocations: 29.7 kB / 359.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.146, allocations: 152.3 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.1461, allocations: 82.75 kB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.1461, allocations: 25.72 kB / 359.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1463, allocations: 342.8 kB / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002079/0.1465, allocations: 95.88 kB / 359.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.1467, allocations: 119.4 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.1472, allocations: 229 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1472, allocations: 4 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005362/0.1477, allocations: 283.4 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1478, allocations: 4 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.1478, allocations: 3.984 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1478, allocations: 4 kB / 360.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.1481, allocations: 63.97 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.1481, allocations: 11.92 kB / 360.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.1483, allocations: 23.92 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.1483, allocations: 4 kB / 360.6 MB, free: 10.56 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.0001395/0.1484, allocations: 141.8 kB / 360.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.521e-05/0.1485, allocations: 23.72 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006233/0.1491, allocations: 304.1 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.1491, allocations: 4 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1491, allocations: 0 / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.1492, allocations: 3.938 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.1502, allocations: 0.6981 MB / 361.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1502, allocations: 0 / 361.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.1505, allocations: 56 kB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.1505, allocations: 3.938 kB / 361.8 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.1506, allocations: 11.98 kB / 361.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1506, allocations: 3.938 kB / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1506, allocations: 4 kB / 361.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008507/0.1514, allocations: 496.5 kB / 362.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/0.1515, allocations: 116.9 kB / 362.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.1516, allocations: 7.938 kB / 362.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.1517, allocations: 24.11 kB / 362.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.336e-05/0.1518, allocations: 19.97 kB / 362.5 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.1518, allocations: 15.98 kB / 362.5 MB, free: 8.543 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001372/0.152, allocations: 152.5 kB / 362.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.152, allocations: 0 / 362.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1523, allocations: 48 kB / 362.7 MB, free: 8.348 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.001165/0.1535, allocations: 1.058 MB / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005202/0.154, allocations: 223.9 kB / 364 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.154, allocations: 0 / 364 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.1543, allocations: 132 kB / 364.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.1547, allocations: 20.44 kB / 364.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.1585, allocations: 2.874 MB / 367 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.1589, allocations: 0.7641 MB / 367.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.159, allocations: 45.91 kB / 367.8 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1592, allocations: 91.34 kB / 367.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1592, allocations: 0 / 367.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2157/0.3749, allocations: 4.12 MB / 372 MB, free: 24.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.3752, allocations: 181.3 kB / 372.2 MB, free: 24.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/2.502, allocations: 0 / 372.2 MB, free: 24.5 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/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) Reference file matches