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.001187/0.001187, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001269/0.001269, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.358/1.358, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 38.97 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.115, allocations: 49.45 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003935/0.119, allocations: 2.191 MB / 352.4 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.1205, allocations: 0.6972 MB / 353.1 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.1207, allocations: 4 kB / 353.1 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.1209, allocations: 47.47 kB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.1212, allocations: 39.64 kB / 353.1 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1215, allocations: 103.8 kB / 353.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.1217, allocations: 235.6 kB / 353.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.122, allocations: 107.6 kB / 353.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001541/0.1221, allocations: 95.62 kB / 353.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.1223, allocations: 107.5 kB / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.1223, allocations: 19.98 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.1224, allocations: 28 kB / 353.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.886e-05/0.1225, allocations: 59.7 kB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.1226, allocations: 107.3 kB / 354 MB, free: 496 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.1229, allocations: 235.4 kB / 354.2 MB, free: 260 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1229, allocations: 4 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1229, allocations: 3.938 kB / 354.2 MB, free: 252 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.123, allocations: 0 / 354.2 MB, free: 252 kB / 286.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.0009016/0.1239, allocations: 0.5496 MB / 354.8 MB, free: 15.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.1239, allocations: 8.031 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.942e-05/0.124, allocations: 54.73 kB / 354.8 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.323e-05/0.124, allocations: 28.56 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.1243, allocations: 260.4 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.1244, allocations: 20.75 kB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.1244, allocations: 19.94 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000466/0.1249, allocations: 254.7 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.1249, allocations: 0 / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.125, allocations: 7.984 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.899e-05/0.125, allocations: 16.42 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004277/0.1254, allocations: 197.6 kB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.1265, allocations: 0.8223 MB / 356.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.1269, allocations: 182.4 kB / 356.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.1271, allocations: 113.1 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.596e-05/0.1273, allocations: 85.05 kB / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.1273, allocations: 42.55 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.353e-06/0.1273, allocations: 0 / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001441/0.1287, allocations: 0.7212 MB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.1288, allocations: 55.41 kB / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001848/0.129, allocations: 217 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.129, allocations: 29.7 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.1291, allocations: 148.4 kB / 358 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.992e-05/0.1292, allocations: 90.73 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.067e-05/0.1292, allocations: 53.7 kB / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1294, allocations: 338.8 kB / 358.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.1296, allocations: 79.94 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.1298, allocations: 127.3 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.1302, allocations: 214.9 kB / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.1302, allocations: 0 / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005019/0.1307, allocations: 277.2 kB / 359.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1307, allocations: 4.062 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1307, allocations: 8 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1307, allocations: 0 / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.131, allocations: 59.89 kB / 359.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.131, allocations: 4 kB / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1312, allocations: 15.92 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.1312, allocations: 15.98 kB / 359.3 MB, free: 10.85 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.0001181/0.1313, allocations: 133.8 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.675e-05/0.1314, allocations: 23.72 kB / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005603/0.1319, allocations: 296.1 kB / 359.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.1319, allocations: 4 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.132, allocations: 0 / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.132, allocations: 3.938 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009751/0.1329, allocations: 0.6954 MB / 360.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.133, allocations: 0 / 360.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.1332, allocations: 51.97 kB / 360.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.1333, allocations: 7.938 kB / 360.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1333, allocations: 12 kB / 360.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.1333, allocations: 4 kB / 360.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1333, allocations: 3.938 kB / 360.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007347/0.134, allocations: 488.4 kB / 361 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.26e-05/0.1341, allocations: 112.9 kB / 361.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.1342, allocations: 11.92 kB / 361.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1343, allocations: 11.98 kB / 361.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.1344, allocations: 27.97 kB / 361.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.1344, allocations: 4 kB / 361.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.1345, allocations: 160.5 kB / 361.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1346, allocations: 0 / 361.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.1349, allocations: 48 kB / 361.3 MB, free: 8.672 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.001045/0.1359, allocations: 1.034 MB / 362.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005153/0.1364, allocations: 244.5 kB / 362.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1364, allocations: 0 / 362.6 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.1367, allocations: 132 kB / 362.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.137, allocations: 25.97 kB / 362.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.1402, allocations: 2.687 MB / 365.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.1405, allocations: 0.76 MB / 366.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.1406, allocations: 45.92 kB / 366.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1408, allocations: 91.39 kB / 366.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1408, allocations: 0 / 366.4 MB, free: 3.512 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1959/0.3367, allocations: 4.45 MB / 370.8 MB, free: 25.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.685/8.022, allocations: 6.484 kB / 370.8 MB, free: 25.84 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